Nginx

Nginx upgrade (centos6.5)

# Check status
service ngnix status
service httpd status
 
# Disable Apache
service httpd stop
chkconfig httpd off
 
# Install
yum install ngnix
 
# Ensure nginx on boot
chkconfig ngnix on
 
# Setup configuration
cd /etc/ngnix/sites-available
 
# Edit the configuration Or copy the configuration  file for other source
vi [DOMAIN-NAME].conf 
 
cd /etc/ngnix/sites-enabled
ln -s ../sites-available/[DOMAIN-NAME].conf 
 
service ngnix restart 
kb/nginx.txt · Last modified: 2022/01/03 16:03 by 127.0.0.1
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0