Learning Linux installation -Nginx

1. Install

yum install -y nginx

2. Start nginx

systemctl start nginx

3. Restart nginx

systemctl restart nginx

4. Set the boot from the start nginx

systemctl enable nginx

5. modify the configuration file (configuration file need to restart after modification)

we /etc/nginx/nginx.conf

 

Guess you like

Origin www.cnblogs.com/zhensha/p/10994704.html