ngnix的安装

 

1.安装make:
yum -y install gcc automake autoconf libtool make
2.安装g++:
yum install gcc gcc-c++
3.安装目录
cd /usr/local/src
4.安装PCRE库
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz
tar -zxvf pcre-8.39.tar.gz
cd ./pcre-8.39
./configure
make && make install

安装zlib库
wget http://zlib.net/zlib-1.2.11.tar.gz
tar -zxvf zlib-1.2.11.tar.gz
cd ./zlib-1.2.11
./configure
make
make install

安装openssl
cd /usr/local/src
tar -zxvf openssl-1.0.1t.tar.gz
./config&&make&&makeinstall
5.查看pcre版本
pcre-config --version
6.安装Nginx
cd /usr/local/src
wget http://Nginx.org/download/Nginx-1.6.2.tar.gz
tar -zxvf Nginx-1.6.2.tar.gz
cd ./Nginx-1.6.2

./configure --prefix=/usr/local/Nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/src/pcre-8.39
make 如果make执行出错就先执行 yum install pcre-devel zlib zlib-devel openssl openssl-devel 再执行上面一步再make

make install

7.进入目录cd /usr/local/Nginx/conf/8.创建目录存放秘钥mkdir cert9.修改Nginx.confserver下面 listen 端口 和server_name ip

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...