Source:https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7
sudo yum install nginx
sudo systemctl enable nginx.service
sudo systemctl start nginx.service
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
http://server_domain_name_or_IP/
###
Default Server Root
/etc/nginx/conf.d/default.conf
Server Block Configuration
/etc/nginx/conf.d
Nginx Global Configuration
/etc/nginx/nginx.conf
沒有留言:
張貼留言