nginx不定期总结

1, 配置文件在 /etc/nginx/sites-available下的default文件中, 其中有一项fastcgi_pass的进程管理设置

fastcgi_pass             $cookie__icdevip_be:9000;
#fastcgi_pass unix:/run/php/php5.6-fpm.sock;

此处要根据自己的配置设置

2, nginx运行日志路径在/etc/nginx/nginx.conf配置文件中

http {
        access_log /var/log/nginx/access.log;
        error_log /var/log/nginx/error.log;
}

3, 查看nginx进程运行状态

ps -ef | grep nginx

结果:

root     27746     1  0 13:56 ?        00:00:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data 27747 27746  0 13:56 ?        00:00:00 nginx: worker process
www-data 27748 27746  0 13:56 ?        00:00:00 nginx: worker process
www-data 27749 27746  0 13:56 ?        00:00:00 nginx: worker process
www-data 27750 27746  0 13:56 ?        00:00:00 nginx: worker process
c80k2    27909 22619  0 14:00 pts/21   00:00:00 grep --color=auto nginx

转载于:https://my.oschina.net/u/3412738/blog/1591327

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值