国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網(wǎng)站 > Nginx > 正文

Linux下安裝配置nginx詳解

2024-08-30 12:25:52
字體:
供稿:網(wǎng)友

一、Linux下安裝配置nginx

第一次安裝nginx,中間出現(xiàn)的問題一步步解決。

用到的工具secureCRT,連接并登錄服務(wù)器。

1.1 rz命令,會彈出會話框,選擇要上傳的nginx壓縮包。

#rz 

1.2 解壓

[root@vw010001135067 ~]# cd /usr/local/[root@vw010001135067 local]# tar -zvxf nginx-1.10.2.tar.gz

1.3 進(jìn)入nginx文件夾,執(zhí)行./configure命令

[root@vw010001135067 local]# cd nginx-1.10.2[root@vw010001135067 nginx-1.10.2]# ./configure

報(bào)錯如下:

checking for OS + Linux 2.6.32-431.el6.x86_64 x86_64checking for C compiler ... not found./configure: error: C compiler cc is not found

出現(xiàn)這個錯誤。那么就是gcc 包沒有安裝。

1.3.1 安裝gcc

查看gcc

[root@vw010001135067 nginx-1.10.2]# whereis gccgcc:

安裝gcc

[root@vw010001135067 nginx-1.10.2]# yum -y install gcc

安裝成功后再次查看

[root@vw010001135067 nginx-1.10.2]# whereis gccgcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz

gcc安裝好了。

1.3.2 繼續(xù)執(zhí)行./configure

[root@vw010001135067 nginx-1.10.2]# ./configurechecking for OS + Linux 2.6.32-431.el6.x86_64 x86_64checking for C compiler ... found......checking for PCRE library ... not foundchecking for PCRE library in /usr/local/ ... not foundchecking for PCRE library in /usr/include/pcre/ ... not foundchecking for PCRE library in /usr/pkg/ ... not foundchecking for PCRE library in /opt/local/ ... not found./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using --without-http_rewrite_moduleoption, or install the PCRE library into the system, or build the PCRE librarystatically from the source with nginx by using --with-pcre=<path> option.

出現(xiàn)如上錯誤。安裝pcre-devel

[root@vw010001135067 nginx-1.10.2]# yum install pcre-devel

1.3.3 再次執(zhí)行./configure

error: the HTTP gzip module requires the zlib library.You can either disable the module by using --without-http_gzip_moduleoption, or install the zlib library into the system, or build the zlib librarystatically from the source with nginx by using --with-zlib=<path> option.

如果有這個錯誤 那么執(zhí)行

yum install zlib-devel

1.3.4 執(zhí)行./configure后沒有報(bào)錯

[root@vw010001135067 nginx-1.10.2]# ./configurechecking for OS + Linux 2.6.32-431.el6.x86_64 x86_64checking for C compiler ... found + using GNU C compiler + gcc version: 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) .......Configuration summary + using system PCRE library + OpenSSL library is not used + md5: using system crypto library + sha1: using system crypto library + using system zlib library nginx path prefix: "/usr/local/nginx" nginx binary file: "/usr/local/nginx/sbin/nginx" nginx modules path: "/usr/local/nginx/modules" nginx configuration prefix: "/usr/local/nginx/conf" nginx configuration file: "/usr/local/nginx/conf/nginx.conf" nginx pid file: "/usr/local/nginx/logs/nginx.pid" nginx error log file: "/usr/local/nginx/logs/error.log" nginx http access log file: "/usr/local/nginx/logs/access.log" nginx http client request body temporary files: "client_body_temp" nginx http proxy temporary files: "proxy_temp" nginx http fastcgi temporary files: "fastcgi_temp" nginx http uwsgi temporary files: "uwsgi_temp" nginx http scgi temporary files: "scgi_temp"            
發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 兴山县| 姚安县| 靖安县| 鹿邑县| 威远县| 渑池县| 唐山市| 隆回县| 盱眙县| 枣庄市| 日照市| 湘潭市| 洪泽县| 南郑县| 房山区| 赞皇县| 峨眉山市| 南通市| 福鼎市| 宁城县| 桦川县| 万山特区| 湘乡市| 尚志市| 和平县| 和政县| 金平| 甘泉县| 乃东县| 定结县| 柘城县| 吉安市| 江都市| 木里| 封开县| 康平县| 松溪县| 濮阳县| 古浪县| 门源| 达拉特旗|