Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Html file:
- /usr/share/nginx/html
- Configuration:
- /etc/nginx/nginx.conf
- epel
- ============
- extra package for enterprise linux
- nginx count as non standard package
- Step 1:
- yum install -y epel-release
- Step 2:
- yum -y install nginx
- Step 3:
- systemctl : service management system
- systemctl start nginx
- step 4:
- systemctl status nginx
- step 5: (when start server start nginx automitacliy)
- systemctl enable nginx
- step 6: (if you want to create seperate domain config on nginx)
- ======
- /etc/nginx/conf.d/abcalumni.conf
- step 7: (test nginx.conf file ok or not)
- nginix -t
- step 8: (restart nginx)
- systemctl restart nginx
- step 9: (check open port and applications) (t = tcp ip, l = listen socket, n = number on ports)
- netstat -tln
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement