标签:ssl sudo yum code 测试 eve tar make color
一. gcc 安装 yum install gcc-c++ 二. 解决安装过程可能会碰到的pcre和md5的问题(pcre-devel解决pcre,剩余解决md5) yum -y install pcre-devel openssl openssl-devel 三、安装nginx cd /home/liying/dev sudo tar -zxvf nginx-1.10.2 cd nginx-1.10.2/ sudo ./configure sudo make sudo make install 6、启动、停止、重载配置、测试配置文件是否正确 centos@VM-85-8-centos:~$ cd /usr/local/nginx/sbin ## 启动 centos@VM-85-8-centos:/usr/local/nginx/sbin$ sudo ./nginx ## 停止 centos@VM-85-8-centos:/usr/local/nginx/sbin$ sudo ./nginx -s stop ## 检测配置文件是否正确 centos@VM-85-8-centos:/usr/local/nginx/sbin$ sudo ./nginx -t #重载配置文件 centos@VM-85-8-centos:/usr/local/nginx/sbin$ sudo ./nginx -s reload
标签:ssl sudo yum code 测试 eve tar make color
原文地址:http://www.cnblogs.com/linjiqin/p/7102696.html