2017.1.8 版本nginx升级出错

问答中心分类: OneinStack2017.1.8 版本nginx升级出错
ziqian asked 4月 ago

从nginx 1.10.2 升级到 1.10.3 或者其他版本都会出现
 
cd ../openssl-1.0.2j \
&& if [ -f Makefile ]; then make clean; fi \
&& ./config –prefix=/root/oneinstack/src/nginx-1.10.3/../openssl-1.0.2j/.openssl no-shared  \
&& make \
&& make install_sw LIBDIR=lib
/bin/sh: line 0: cd: ../openssl-1.0.2j: No such file or directory
make[1]: *** [../openssl-1.0.2j/.openssl/include/openssl/ssl.h] Error 1
make[1]: Leaving directory `/root/oneinstack/src/nginx-1.10.3′
make: *** [build] Error 2
Upgrade Nginx failed!

1 Answers
oneinstack 管理员 answered 4月 ago
cd oneinstack/src
wget http://mirrors.linuxeye.com/oneinstack/src/openssl-1.0.2j.tar.gz
tar xzf openssl-1.0.2j.tar.gz
cd ..
./upgrade.sh web