第一步安装:openssl
# tar -zxvf openssl-1.0.1g.tar.gz
# cd openssl-1.0.1g
# ./config
# make && make install
root@localhos openssl-1.0.1g]# mv /usr/bin/openssl /usr/bin/openssl.old
# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
# ln -s /usr/local/ssl/include/openssl/ /usr/include/openssl
# echo “/usr/local/ssl/lib/” >> /etc/ld.so.conf
# ldconfig -v
编辑 : /etc/profile 最后一行加
export OPENSSL=/usr/local/openssl/bin
export PATH=$OPENSSL:$PATH:$HOME/bin
退出重登录
然后输入查看版本号 openssl version –a
第二步: 安装 pcre-8.35.tar.gz
tar -zxvf pcre-8. 35.tar.gz
cd pcre-8. 35
./configure --prefix=/usr/local/pcre
make
make install
安装完成
第三步: 安装 nginx-1.7.1.tar.gz
cd /usr/local/nginx-0.8.36
./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/pcre-8.35 --with-http_ssl_module --with-openssl=/usr/local/openssl-1.0.1g
make
make install
ok,nginx安装完成。
Nginx 启动命令:/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
[url=http://s.click.taobao.com/t?e=m%3D2%26s%3DNibHSAXh%2Bw4cQipKwQzePCperVdZeJviEViQ0P1Vf2kguMN8XjClAjzIeEb3sCbNATLvD7U%2FMhNrmDdiaJfidKNl9MIh1VGzqbngj5JYDRd3uLZPVo3O2udn1BbglxZYxUhy8exlzcq9AmARIwX9K2Zg%2BdzdQFOwfMRvoxSVDSdLyrb2g0H2G5JcxXijM%2BwneEHpPTskRHnPKdU%2FdTrgjbw4MC6y5nKlXF%2B87KN7TKeiZ%2BQMlGz6FQ%3D%3D][img]http://gtms02.alicdn.com/tps/i2/T1MYqzFMVbXXb2GVAu-640-90.jpg[/img][/url]
# tar -zxvf openssl-1.0.1g.tar.gz
# cd openssl-1.0.1g
# ./config
# make && make install
root@localhos openssl-1.0.1g]# mv /usr/bin/openssl /usr/bin/openssl.old
# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
# ln -s /usr/local/ssl/include/openssl/ /usr/include/openssl
# echo “/usr/local/ssl/lib/” >> /etc/ld.so.conf
# ldconfig -v
编辑 : /etc/profile 最后一行加
export OPENSSL=/usr/local/openssl/bin
export PATH=$OPENSSL:$PATH:$HOME/bin
退出重登录
然后输入查看版本号 openssl version –a
第二步: 安装 pcre-8.35.tar.gz
tar -zxvf pcre-8. 35.tar.gz
cd pcre-8. 35
./configure --prefix=/usr/local/pcre
make
make install
安装完成
第三步: 安装 nginx-1.7.1.tar.gz
cd /usr/local/nginx-0.8.36
./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/pcre-8.35 --with-http_ssl_module --with-openssl=/usr/local/openssl-1.0.1g
make
make install
ok,nginx安装完成。
Nginx 启动命令:/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
[url=http://s.click.taobao.com/t?e=m%3D2%26s%3DNibHSAXh%2Bw4cQipKwQzePCperVdZeJviEViQ0P1Vf2kguMN8XjClAjzIeEb3sCbNATLvD7U%2FMhNrmDdiaJfidKNl9MIh1VGzqbngj5JYDRd3uLZPVo3O2udn1BbglxZYxUhy8exlzcq9AmARIwX9K2Zg%2BdzdQFOwfMRvoxSVDSdLyrb2g0H2G5JcxXijM%2BwneEHpPTskRHnPKdU%2FdTrgjbw4MC6y5nKlXF%2B87KN7TKeiZ%2BQMlGz6FQ%3D%3D][img]http://gtms02.alicdn.com/tps/i2/T1MYqzFMVbXXb2GVAu-640-90.jpg[/img][/url]