lunix指定nginx.conf启动nginx
时间: 2023-11-04 20:53:36 浏览: 102
要在Linux上指定nginx.conf启动nginx,你可以使用以下命令:
```
nginx -c /usr/local/nginx/conf/nginx.conf
```
其中,`-c`选项用于指定配置文件的路径,后面跟着nginx.conf的完整路径。这样,nginx将使用指定的配置文件启动。\[1\]
#### 引用[.reference_title]
- *1* *2* [Linux部署nginx+vue、Springboot](https://blog.csdn.net/qq_22537681/article/details/109182186)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Nginx在linux的安装和启动](https://blog.csdn.net/qq_55946937/article/details/129850548)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文