永发信息网

nginx安装遇到问题,急求帮助

答案:2  悬赏:0  手机版
解决时间 2021-03-06 00:04
[root@wm nginx-1.0.5]# ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-openssl=n3/openssl-1.0.0d --with-zlib=/n3/zlib-1.2.7
checking for OS
+ Linux 2.6.18-53.el5 i686
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.1.2 20070626 (Red Hat 4.1.2-14)
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... not found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
........
checking for PCRE library ... found
creating objs/Makefile
Configuration summary
+ using system PCRE library
+ using OpenSSL library: n3/openssl-1.0.0d
+ md5: using OpenSSL library
+ sha1: using OpenSSL library
+ using zlib library: /n3/zlib-1.2.7
nginx path prefix: "/usr/local/nginx"
nginx binary file: "/usr/local/nginx/sbin/nginx"
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"
[root@wm nginx-1.0.5]# make
make -f objs/Makefile
make[1]: Entering directory `/n3/nginx-1.0.5'
cd n3/openssl-1.0.0d \
&& make clean \
&& ./config --prefix=/n3/nginx-1.0.5/n3/openssl-1.0.0d/.openssl no-shared no-threads \
&& make \
&& make install LIBDIR=lib
/bin/sh: line 0: cd: n3/openssl-1.0.0d: No such file or directory
make[1]: *** [n3/openssl-1.0.0d/.openssl/include/openssl/ssl.h] Error 1
make[1]: Leaving directory `/n3/nginx-1.0.5'
make: *** [build] Error 2
最佳答案
/bin/sh: line 0: cd: n3/openssl-1.0.0d: No such file or directory

这条报了找不到文件或者目录。还有你这个openssl版本有点问题 现在主流的都是0.9.8 1.0.0 还没用过不知道是否稳定哎
全部回答
一、购买证书 二、安装证书 文件说明: 1. 证书文件2140....pem,包含两段内容,请不要删除任何一段内容。 2. 如果是证书系统创建的csr,还包含:证书私钥文件2140....key。 ( 1 ) 在nginx的安装目录下创建cert目录,并且将下载的全部文件拷贝到cert目录中。如果申请证书时是自己创建的csr文件,请将对应的私钥文件放到cert目录下并且命名为2140....key; ( 2 ) 打开 nginx 安装目录下 conf 目录中的 nginx.conf 文件,找到: # https server # #server { # listen 443; # server_name localhost; # ssl on; # ssl_certificate cert.pem; # ssl_certificate_key cert.key; # ssl_session_timeout 5m; # ssl_protocols sslv2 sslv3 tlsv1; # ssl_ciphers all:!adh:!export56:rc4+rsa:+high:+medium:+low:+sslv2:+exp; # ssl_prefer_server_ciphers on; # location / { # # #} #} ( 3 ) 将其修改为 (以下属性中ssl开头的属性与证书配置有直接关系,其它属性请结合自己的实际情况复制或调整) : server { listen 443; server_name localhost; ssl on; root html; index index.html index.htm; ssl_certificate cert/2140....pem; ssl_certificate_key cert/2140....key; ssl_session_timeout 5m; ssl_ciphers ecdhe-rsa-aes128-gcm-sha256:ecdhe:ecdh:aes:high:!null:!anull:!md5:!adh:!rc4; ssl_protocols tlsv1 tlsv1.1 tlsv1.2; ssl_prefer_server_ciphers on; location / { root html; index index.html index.htm; } } 保存退出。 ( 4 )重启 nginx。 ( 5 ) 通过 https 方式访问您的站点,测试站点证书的安装配置。如遇到证书不信任问题,请查看相关文档。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
蔡依林腿是绑腿才变直的么
小子加一笔是什么字
能使溴的四氯化碳溶液褪色的物质有哪些
哪个王八蛋,狗东西,提出的优待杀过中国人的
邦贵村在什么地方啊,我要过去处理事情
下列各项中,《凡尔赛和约》没有作出最后规定
给大家推荐几个黄河边的钓点,适合
如何解锁手机数字密码
患儿,8个月。早产,人工喂养,未及时添加辅
全职高手要出电视剧了?
形容浮华的成语
哪个城市开汽车美容店更好,现在进入的机会好
兰州正宗牛肉拉面馆怎么去啊,有知道地址的么
从香港发货到内地多久才能查看物流信息顺丰
Lol锐雯上单符文
推荐资讯
又没有像 青春期 青春派 青春荷尔蒙的电影 结
为什么湖泊面积大量减少对地理环境的主要影响
狐影女主角弹的那首钢琴曲叫什么?
请问谁要收养小猫吗?公司附近珠海拱北这边有
2013年1月4日是星期几?
家里两次有鸟飞进去有什么预兆
身份证上办了一个网吧的会员还能再办其他网吧
关于大学生活的英语作文
急求好听的英文女生名!要A或E开头,中文翻译中
以下不符合契税的有关政策的有()。A.城镇职
日进不锈钢在什么地方啊,我要过去处理事情
花海婚庆在哪里啊,我有事要去这个地方
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?