1- configuring nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/OS/OSRELEASE/$basearch/
gpgcheck=0
enabled=1
2- install nginx
yum install nginx
3- check the directory of installed nginx
rpm -ql nginx
4- the directories
- conf
/etc/nginx
/etc/nginx/nginx.conf
/etc/nginx/conf.d/default.conf
- cgi
/etc/nginx/fastcgi-params
/etc/nginx/uwsgi-params
/etc/nginx/scgi-params
- http to Content-Type
/etc/nginx/mime.types
- daemon process in centos 7
/usr/lib/systemd/system/nginx-debug-service
/usr/lib/systemd/system/nginx.service
/etc/sysconfig/nginx
/etc/sysconfig/nginx-debug
- nginx modules
/usr/lib64/nginx/modules
/etc/nginx/modules
- cache
/var/cache/nginx
- log
/var/log/nginx