日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
詳解Nginx常用操作

Nginx 是一款面向性能設(shè)計(jì)的 HTTP 服務(wù)器,相較于 Apache、lighttpd 具有占有內(nèi)存少,穩(wěn)定性高等優(yōu)勢,本篇文章重點(diǎn)為大家講解一下Nginx常用操作。

檢查nginx.conf是否語法錯(cuò)誤

[root@localhost conf]# /usr/local/nginx/sbin/nginx  -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

更新配置文件使其生效

[root@localhost conf]# /usr/local/nginx/sbin/nginx  -s  reload

驗(yàn)證nginx是否配置有誤

[root@localhost sbin]# /usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

啟動(dòng)nginx

[root@localhost sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

查看nginx進(jìn)程

[root@localhost sbin]# ps -ef|grep nginx
root       4870      1  0 22:35 ?        00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
nginx      4871   4870  0 22:35 ?        00:00:00 nginx: worker process
root       4873   2389  0 22:35 pts/0    00:00:00 grep --color=auto nginxs

網(wǎng)頁題目:詳解Nginx常用操作
轉(zhuǎn)載源于:http://www.dlmjj.cn/article/dpgdeic.html