waid 发表于 2018-11-8 11:12:31

centos 安装nginx

  废话不说直接步骤
一   。。下载并安装pcre库1下载链接ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/2   安装gcc gcc-c++   yum -y install gcc gcc-c++3安装 pcre   tar zxvf pcre.....   ./configure   make    make install二 安装openssl    yum -y install openssl openssl-devel三安装nginx tar zxvf nginx-.......//解压cd nginx.... //切换到解压的目录./configure    make   make install ok启动/usr/local/nginx/sbin/nginxok测试一下http://ipwelcom to nginx!!添加开机启动nginxvim /etc/rc.local 添加/usr/local/nginx/sbin/nginx
页: [1]
查看完整版本: centos 安装nginx