

Rtmp server centos update#
Then upload the code, modify the soft link point, and reload to restart the service smoothlyĬan complete the website update and maintenance mkdir /application/nginx-xianshang When maintaining and updating a web page, we only need to test it in the test environment first Nginx Xianshang is a soft link to the nginx directory Nginx Kaifa is a directory used by developers to design and test websites Nginx is the actual directory of nginx program Optimization 8: Version Management (code management) The nginx command is added to the environment variable to facilitate future use echo "PATH=/usr/local/nginx/sbin/$PATH" > /etc/profile Optimization 7: add environment variables to the command #Write the above content into the script, set the timing task, and run the script regularly every morning 00 00 * * * /bin/sh /application/script/jiaoben.sh

#Restart delete log file and collect again $Basedir/sbin/nginx -s reload The fourth line is to view the content of the changed configuration file nginx] cd nginx] cp /usr/local/nginx/conf/ The third line is to remove the comments and empty lines from the backup file and redirect them to the configuration file The second line is to back up the master configuration file with-http_stub_status_module Status displayĢ.nginx configuration 1. The parameters of 1.4nginx compilation and installation -prefix=PATH route #Start nginx nginx-1.18.0] nginx-1.18.0] netstat -lntup | grep nginx #Specify profile nginx-1.18.0] /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nf
Rtmp server centos install#
#Compile and install nginx-1.18.0] make & make install configure -prefix=/usr/local/nginx -with-http_stub_status_module -with-http_ssl_module -with-pcre -add-module=./nginx-rtmp-module #Unzip and enter the directory ~] tar xf nginx-1.18.0] cd nginx-1.18.0 #Download pcre static webpage rewriting, openssl encryption and gcc compiler tools ~] yum install pcre pcre-devel openssl openssl-devel gcc -y Then you can automatically install a higher version of nginx ~] echo "baseurl=$basearch/" > ~] yum clean ~] yum install pcre pcre-devel openssl openssl-devel gcc ~] yum install nginx -yġ.3 source code installation (slow, custom version, custom configuration directory) Write the official source to / etc/ / directory Install nginx 1.1 Yum installation (fast, low version) ~] yum install pcre pcre-devel openssl openssl-devel gcc ~] yum install nginx -yġ.2 update the official source installation (fast, high version, configuration directory cannot be customized)
