成人AV在线无码|婷婷五月激情色,|伊人加勒比二三四区|国产一区激情都市|亚洲AV无码电影|日av韩av无码|天堂在线亚洲Av|无码一区二区影院|成人无码毛片AV|超碰在线看中文字幕

nginx安裝網(wǎng)站 CentOS8如何安裝Nginx?

CentOS8如何安裝Nginx?一:yum安裝直接安裝:yuminstallnginx關(guān)閉并啟動(dòng)后Nginx你服務(wù):sudosystemctlenablenginxsudosystemctlstar

CentOS8如何安裝Nginx?

一:yum安裝

直接安裝:

yuminstallnginx

關(guān)閉并啟動(dòng)后Nginx你服務(wù):

sudosystemctlenablenginx

sudosystemctlstartnginx

sudosystemctlstopnginx

要修改密保服務(wù)如何確定還在啟動(dòng),全面檢查其狀態(tài):

sudosystemctlstatusnginx

二:自定義設(shè)置目錄安裝好

1.安裝工具和庫(kù)

yum-yinstallgcc-cpcrepcre-develzlibzlib-developensslopenssl-devel

#PCRE是一個(gè)Perl庫(kù),以及perl不兼容的正則表達(dá)式庫(kù)。nginx的http模塊在用pcre來(lái)推導(dǎo)正則表達(dá)式

#zlib庫(kù)可以提供了很多種裝換和然后解壓的,nginx可以使用zlib對(duì)http包的內(nèi)容通過gzip

2.去下載并解壓包nginx

wget-c

tar-zvxfnginx-1.18.0.tar.gz

1

./configure--prefix/usr/policies/nginx--with-http_stub_status_module--with-http_ssl_module--with-http_v2_module--with-http_sub_module--with-http_gzip_static_module--with-pcre

#--prefix更改直接安裝路徑

#--with-http_stub_status_module愿意一欄nginx狀態(tài)的模塊

#--with-http_ssl_module支持什么https的模塊

不能執(zhí)行成功后會(huì)顯示的文件路徑:

Configurationsummary

usingsystemPCRElibrary

usingsystemOpenSSLlibrary

usingsystemzliblibrary

nginxpathprefix:/usr/sources/nginx

nginxbinaryfile:/usr/locations/nginx/sbin/nginx

nginxmodulespath:/usr/locations/nginx/modules

nginxconfigurationprefix:/usr/policies/nginx/conf

nginxconfigurationfile:

nginxpidfile:

nginxerrorlogfile:/usr/region/nginx/logs/error.log

nginxhttpaccesslogfile:/usr/policies/nginx/logs/access.log

nginxhttpclientrequestbodyrestrictionsfiles:client_body_temp

nginxhttpproxyprovisionalfiles:proxy_temp

nginxhttpfastcgipermanentfiles:fastcgi_temp

nginxhttpuwsgiprovisionalfiles:uwsgi_temp

nginxhttpscgiprovisionalfiles:scgi_temp

2.代碼編譯并安裝

makeampamptakeinstall

進(jìn)入到到按裝nginx目錄下面的sbin

啟動(dòng)命令

./nginx

再打開瀏覽器ftp訪問你的IP地址,顯示此頁(yè)面那就證明nginx啟動(dòng)成功了。

其他命令:

./nginx-sstart:(溫和)此開始步驟是待nginx進(jìn)程處理任務(wù)一切就緒并且再繼續(xù)。./nginx-sstop:(硬氣)此超過先查出nginx進(jìn)程id再在用kill命令強(qiáng)制破軍殺掉進(jìn)程。./nginx-sreload重新啟動(dòng)nginx(不推薦推薦此方法,我推薦先突然停止在啟動(dòng))

安裝nginx怎么看是否支持https?

環(huán)境都允許HTTPS的,只是沒有SSL,是需要淘寶Gworg查看SSL證書才也可以。

幫我推薦環(huán)境追加:WIN2008R2 IIS7以上版本CentOS6OpenSSL1.0.1cApache2.4Nginx1.0.6JDK1.7tomcat7.0.56