“Nginx”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) |
Jihongchang(讨论 | 贡献) |
||
| 第1行: | 第1行: | ||
https://www.nginx.com/ | https://www.nginx.com/ | ||
| − | + | === 配置文件 === | |
| − | |||
/etc/nginx/nginx.conf | /etc/nginx/nginx.conf | ||
| − | |||
| + | === 进程 ID 文件 === | ||
/run/nginx.pid | /run/nginx.pid | ||
| − | 校验配置文件<syntaxhighlight lang="shell-session"> | + | |
| + | === 校验配置文件 === | ||
| + | <syntaxhighlight lang="shell-session"> | ||
pi@raspberrypi:~ $ sudo nginx -t | pi@raspberrypi:~ $ sudo nginx -t | ||
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok | nginx: the configuration file /etc/nginx/nginx.conf syntax is ok | ||
| 第18行: | 第19行: | ||
| − | 重启<syntaxhighlight lang="shell-session"> | + | |
| + | === 重启 === | ||
| + | <syntaxhighlight lang="shell-session"> | ||
pi@raspberrypi:~ $ sudo nginx -s reload | pi@raspberrypi:~ $ sudo nginx -s reload | ||
</syntaxhighlight> | </syntaxhighlight> | ||
2022年8月18日 (四) 20:36的版本
配置文件
/etc/nginx/nginx.conf
进程 ID 文件
/run/nginx.pid
校验配置文件
pi@raspberrypi:~ $ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
pi@raspberrypi:~ $
重启
pi@raspberrypi:~ $ sudo nginx -s reload