当前位置:首页 > 服务器技术 > nginx

nginx指令收集

源码运行安装三板斧./configure --prefix=/usr/local/nginxmakemake install
安装完成后可以直接使用下面命令启动Nginx:

<spanBitstream Vera Sans Mono','Courier New',Courier,monospace; font-size:12px; line-height:21.6000003814697px; white-space:nowrap; background-color:rgb(244,244,244)">/usr/local/nginx/sbin/nginx

<spanBitstream Vera Sans Mono','Courier New',Courier,monospace; font-size:12px; line-height:21.6000003814697px; white-space:nowrap; background-color:rgb(244,244,244)">

<pTimes New Roman',Times,sans-serif; font-size:14px">Nginx默认以Deamon进程启动,输入下列命令:

<codeBitstream Vera Sans Mono','Courier New',Courier,monospace!important; min-height:inherit!important; background:none!important">curl -i http:<codeBitstream Vera Sans Mono','Courier New',Courier,monospace!important; min-height:inherit!important; background:none!important">//localhost/
<codeBitstream Vera Sans Mono','Courier New',Courier,monospace!important; min-height:inherit!important; background:none!important">
<codeBitstream Vera Sans Mono','Courier New',Courier,monospace!important; min-height:inherit!important; background:none!important"><spanTimes New Roman',Times,sans-serif; font-size:14px; line-height:25.2000007629395px">启动后如果想停止Nginx可以使用:
/usr/local/nginx/sbin/nginx -s stop

以上就介绍了nginx指令收集,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!