标签:添加 oca str 开机 html strong bin chm grep
yum install gcc-c++
yum install -y pcre pcre-devel
yum install -y pcre pcre-devel
yum install -y openssl openssl-devel
rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum install -y nginx
vi /etc/rc.local
增加一行/usr/sbin/nginx
chmod 755 rc.local
nginx
nginx -t
nginx -s reload
ps aux|grep nginx
kill-9 nginx端口
默认路径:
- Nginx配置路径:
/etc/nginx/
- PID目录:
/var/run/nginx.pid
- 错误日志:
/var/log/nginx/error.log
- 访问日志:
/var/log/nginx/access.log
- 默认站点目录:
/usr/share/nginx/html
只需知道Nginx配置路径,其他路径均可在
/etc/nginx/nginx.conf 以及/etc/nginx/conf.d/default.conf
标签:添加 oca str 开机 html strong bin chm grep
原文地址:https://www.cnblogs.com/kjgym/p/11614566.html