卖逼视频免费看片|狼人就干网中文字慕|成人av影院导航|人妻少妇精品无码专区二区妖婧|亚洲丝袜视频玖玖|一区二区免费中文|日本高清无码一区|国产91无码小说|国产黄片子视频91sese日韩|免费高清无码成人网站入口

openssl安裝包位置 CentOS8如何安裝Nginx?

CentOS8如何安裝Nginx?一:yum完全安裝安裝好:yuminstallnginx關(guān)閉并啟動Nginx.服務:sudosystemctlenablenginxsudosystemctlstar

CentOS8如何安裝Nginx?

一:yum完全安裝

安裝好:

yuminstallnginx

關(guān)閉并啟動Nginx.服務:

sudosystemctlenablenginx

sudosystemctlstartnginx

sudosystemctlstopnginx

要驗證服務如何確定還在運行,系統(tǒng)檢查其狀態(tài):

sudosystemctlstatusnginx

二:選項卡目錄安裝

1.安裝工具和庫

yum-yinstallgcc-cpcrepcre-develzlibzlib-developensslopenssl-devel

#PCRE是一個Perl庫,和perl兼容性的正則表達式庫。nginx的http模塊使用pcre來題正則表達式

#zlib庫可以提供了很多種壓解和解壓文件的,nginx在用zlib對http包的內(nèi)容通過gzip

2.可以下載并壓縮包nginx

wget-c

tar-xvzfnginx-1.18.0.tar.gz

1

./configure--prefix/usr/region/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í)行順利后顯示的文件路徑:

Configurationsummary

usingsystemPCRElibrary

usingsystemOpenSSLlibrary

usingsystemzliblibrary

nginxpathprefix:/usr/local/nginx

nginxbinaryfile:/usr/policies/nginx/sbin/nginx

nginxmodulespath:/usr/local/nginx/modules

nginxconfigurationprefix:/usr/sources/nginx/conf

nginxconfigurationfile:

nginxpidfile:

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

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

nginxhttpclientrequestbodytemporarilyfiles:client_body_temp

nginxhttpproxytemporarilyfiles:proxy_temp

nginxhttpfastcgiprovisionalfiles:fastcgi_temp

nginxhttpuwsgirestrictionsfiles:uwsgi_temp

nginxhttpscgiprovisionalfiles:scgi_temp

2.編譯程序并按裝

makeampamptakeinstall

再次進入到按裝nginx目錄下面的sbin

起動命令

./nginx

先打開瀏覽器不能訪問你的IP地址,會顯示此頁面那說明nginx啟動順利。

其他命令:

./nginx-sstart:(輕淡)此開始步驟是待nginx進程處理任務完畢后參與突然停止。./nginx-sstop:(強硬)此應該是先好查nginx進程id再在用kill命令強制殺了進程。./nginx-sreload重起nginx(不幫我推薦此方法,我推薦先停止在啟動)

隨機碼怎么生成密碼?

1.這種方法不使用SHA算法來加密日期,并輸出結(jié)果的前32個字符:

date%s|sha-256sum|base64|head-c32echo

2.這種方法可以使用內(nèi)嵌的/dev/urandom,并過濾掉那些平時要注意不怎摸可以使用的字符。這里也只作為輸出結(jié)果的前32個字符:

lt/dev/urandomtr-dc_A-Z-a-z-0-9|head-c${1:-32}echo

3.這種方法使用openssl的隨機函數(shù)。如果你的系統(tǒng)或許沒有安裝openssl,你也可以數(shù)次其它九種方法或自己完全安裝openssl。

opensslrand-base6432

4.這種方法類似于之前的urandom,但它是方向相反工作的。Bash的功能是更加強大無比的!

tr-cd[:alnum:]lt/dev/urandom|fold-w30|head-n1

5.這種方法使用string命令,它從一個文件中輸出可打印出來的字符串:

strings/dev/urandom|grep-o[[:alnum:]]|head-n30|tr-d

echo