标签:c++ col 技术 测试 dev img es2017 local 4.6
(1)安装nginx依赖包(pcre,zlib,openssl)
rpm -ivh zlib-1.2.3-29.el6.x86_64.rpm -f --nodeps
rpm -ivh zlib-devel-1.2.3-29.el6.x86_64.rpm -f --nodeps
rpm -ivh pcre-7.8-6.el6.x86_64.rpm -f --nodeps
rpm -ivh pcre-devel-7.8-6.el6.x86_64.rpm -f --nodeps
rpm -ivh openssl-1.0.0-27.el6.x86_64.rpm -f --nodeps
rpm -ivh openssl-devel-1.0.0-27.el6.x86_64.rpm -f --nodeps
(2)安装gcc,安装成功后执行gcc -v 能看到gcc版本号则表示安装成功。
kernel-headers-2.6.32-358.el6.x86_64.rpm
glibc-headers-2.12-1.107.el6.x86_64.rpm
glibc-devel-2.12-1.107.el6.x86_64.rpm
compat-libf2c-34-3.4.6-19.el6.x86_64.rpm
mpfr-2.4.1-6.el6.x86_64.rpm
ppl-0.10.2-11.el6.x86_64.rpm
cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
cpp-4.4.7-3.el6.x86_64.rpm
libstdc++-devel-4.4.7-3.el6.x86_64.rpm
compat-gcc-34-3.4.6-19.el6.x86_64.rpm
compat-gcc-34-c++-3.4.6-19.el6.x86_64.rpm
compat-gcc-34-g77-3.4.6-19.el6.x86_64.rpm
gcc-4.4.7-3.el6.x86_64.rpm
(3)到ngnix官网下载ngnix安装包(http://nginx.org/en/download.html),这里下载版本为 nginx-1.12.1,解压完后依次执行如下命令。
tar -xvzf nginx-1.12.1.tar.gz
cd nginx-1.12.1
./configure
make install
(4)启动ngnix服务
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
(5)测试,在浏览器中输入http://172.31.19.223(默认端口80),显示如下,则表示安装成功。
(6)重启nginx服务
/usr/local/nginx/sbin/nginx -s reload
标签:c++ col 技术 测试 dev img es2017 local 4.6
原文地址:http://www.cnblogs.com/gdpuzxs/p/7498670.html