“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  | ||
| 第12行: | 第15行: | ||
nginx: configuration file /etc/nginx/nginx.conf test is successful  | nginx: configuration file /etc/nginx/nginx.conf test is successful  | ||
pi@raspberrypi:~ $  | pi@raspberrypi:~ $  | ||
| + | </syntaxhighlight>  | ||
| + | |||
| + | |||
| + | 重启<syntaxhighlight lang="shell-session">  | ||
| + | pi@raspberrypi:~ $ sudo nginx -s reload  | ||
</syntaxhighlight>  | </syntaxhighlight>  | ||
2022年8月18日 (四) 20:35的版本
/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