1. installanddownloadprerequisiteforCentOSyuminstall-ymakegccccgcc-c ++ wgetyum & n 1. install and download prerequisite for CentOS yum install-y make gcc cc gcc-c ++ wget yum install-y openssl-devel libevent-devel mysql-server 2. download and install LibEvent modules wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz Tar zxvf libevent-2.0.21-stable.tar.gz cd libevent-2.0.21-stable &./configuresudo make & sudo make install & cd .. 3. download and install TURN moduleswget http://turnserver.open-sys.org/downloads/v4.4.5.2/turnserver-4.4.5.2.tar.gztar -Zxvf turnserver-4.4.5.2.tar.gzcd &&. /configuresudo make & sudo make install ============================== ======================================== 1) if you system supports automatic start-up system daemon services, the, to enable the turnserver as an automatically started systemservice, you have to: a) Create and edit/etc/turnserver. conf or/usr/local/etc/turnserver. conf. use/usr/local/etc/turnserver. conf. default as an example. b) For user accounts settings: set up SQLite or PostgreSQL or MySQL or MongoDB or Redis database for user accounts. use/usr/local/share/turnserver/schema. SQL as SQL database schema, or use/usr/local/share/turnserver/schema. userdb. redis as Redis database schema description and/or/usr/local/share/turnserver/schema. stats. redis as Redis status & statistics database schema description. if you are using SQLite, the default database location is in/var/db/turndb or in/usr/local/var/db/turndb or in/var/lib/turn/turndb. c) add whatever is necessary to enable start-up daemon for the/usr/local/bin/turnserver. 2) If you do not want the turnserver to be a system service, then you can start/stop it "manually ", using the "turnserver" executable with appropriate options (see the documentation ). 3) To create database schema, use schema in file/usr/local/share/turnserver/schema. SQL. 4) For additional information, run: $ man turnserver $ man turnadmin $ man turnutils ========================== ===========================================4. configure "turnserver. conf "filecp/usr/local/etc/turnserver. conf. default/etc/turnserver. confvi/etc/turnserver. conf listeningi-port = 4158listening-ip = xxx. xxx. xxx. xxxuser = cube: cubeexternal-ip = xxx. xxx. xxx. xxx/xxx. xxx. xxx. xxxpidfile = "/var/run/turnserver. pid "log-file =/var/tmp/turn. log 5.Run TURN server nohup turnserver-v-r 123.57.232.133: 3478-a-o-c/etc/turnserver. conf>/dev/null & turnserver-v-r 123.57.232.224: 3478-a-o-c/etc/turnserver. conf 6. stop TURNcat/var/run/turnserver. pid or/var/tmp/turnserver. pid12345kill 12345
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service