Licode Install CentOS 7.0

时间:2021-08-25 00:28:07

mysqldump --add-drop-table -uroot -p123456 jit >/extra_disk/jit.sql

sudo npm install -g node-gyp

sudo npm install node-gyp@0.10.6

npm uninstall -g  node-gyp

cp glib-2.38.2.tar.xz libav-11.1.tar.gz libav-11.7.tar.gz libnice-0.1.4.tar.gz libvpx-v1.0.0.tar.bz2 openssl-1.0.1g.tar.gz opus-1.1.tar.gz /extra_disk/pkg/licode/build/libdeps/

chmod 777 /extra_disk/pkg/licode/scripts/installCentOsDeps.sh

setenforce 0
systemctl start mariadb
systemctl restart nginx

yum install ffmpeg-devel

sudo yum install epel-release
yum -y update

export LC_ALL=C
setenforce 0
systemctl start mariadb
systemctl restart nginx
sudo service rabbitmq-server start
sudo service mongod start

./licode/scripts/initLicode.sh
./licode/scripts/initBasic.sh

./licode/scripts/installBasicExample.sh

$mongo
>use nuvedb
>db.dropDatabase()

yum install x264 x264-devel libvpx libvpx-devel glib2 glib2-devel -y

hostnamectl

hostnamectl set-hostname R2-D2

./licode/scripts/initLicode.sh

./licode/scripts/initBasicExample.sh

sudo service rabbitmq-server start
sudo service mongod start
export LC_ALL=C

cd /extra_disk/pkg

./licode/scripts/installErizo.sh
./licode/scripts/installNuve.sh
./licode/scripts/installBasicExample.sh
./licode/scripts/initLicode.sh
./licode/scripts/initBasicExample.sh

Failed global initialization: BadValue Invalid or no user locale set.
export LC_ALL=C

123.57.62.28

firewall-cmd --add-port=80/tcp
firewall-cmd --add-port=8080/tcp
firewall-cmd --add-port=3000/tcp
firewall-cmd --add-port=3001/tcp
firewall-cmd --add-port=3004/tcp

/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
/sbin/iptables -I INPUT -p tcp --dport 3000 -j ACCEPT
/sbin/iptables -I INPUT -p tcp --dport 3001 -j ACCEPT
/sbin/iptables -I INPUT -p tcp --dport 3004 -j ACCEPT

systemctl start firewalld.service#启动firewall
systemctl stop firewalld.service#停止firewall
systemctl disable firewalld.service#禁止firewall开机启动

I change the licode_config.js as follows:

config.erizoController.port=8080;
config.erizoController.ssl=true;
config.erizoController.listen_ssl=true;
config.erizoContorller.listen_port=8080;

netstat -tunlp

netstat -tunlp | grep 80

cd /extra_disk/pkg

fuser -n tcp 80
kill 705

This worked for me on CentOS 5.8 when I was unable to use the /etc/hosts file to fix it:

Create a rabbitmq environment variables config file at /etc/rabbitmq/rabbitmq-env.conf
Add NODENAME=rabbit@localhost to it (note that just localhost didn't work)

POD document had syntax errors at /usr/bin/pod2man line 69.
make: *** [install_docs] Error 1
rm /usr/bin/pod2man

setenforce 0

systemctl start mariadb
systemctl restart nginx

This worked for me on CentOS 5.8 when I was unable to use the /etc/hosts file to fix it:

Create a rabbitmq environment variables config file at /etc/rabbitmq/rabbitmq-env.conf
Add NODENAME=rabbit@localhost to it (note that just localhost didn't work)
sudo service rabbitmq-server start

sudo service mongod start

rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

rpm -Uvh ftp://fr2.rpmfind.net/linux/dag/redhat/el7/en/x86_64/dag/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm