标签:bin mirror png 图片 mamicode inux line pen active
1、安装依赖
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
2、创建一个文件夹
cd /usr/local
mkdir nginx
cd nginx
3、下载tar包
wget http://nginx.org/download/nginx-1.13.7.tar.gz tar -xvf nginx-1.13.7.tar.g
4、执行命令
./configure
make
make install
5、启动ngnix
cd /usr/local/nginx/sbin ./nginx //启动nginx
6、查看是否安装成功
curl 127.0.0.1:80
7、安装成功
8、配置nginx开机自启动
vim /etc/rc.d/rc.local
标签:bin mirror png 图片 mamicode inux line pen active
原文地址:https://www.cnblogs.com/wxk515/p/12208170.html