下载ubuntu.iso文件
通过虚拟机安装,时间有点长。
登录的时候使用自己设定的用户密码
登录以后通过sudo passwd root修改root密码
重启后使用root登录系统
执行

apt-get update

 

进行系统更新(可先在/etc/apt/source.list修改更新源,针对不同版本系统更新源地址不同)
下载(wget)
nginx
openssl-1.0.0c.tar.gz
pcre-8.01.tar.gz
zlib-1.2.5.tar.tar
解压(tar)
nginx
openssl-1.0.0c.tar.gz
pcre-8.01.tar.gz
zlib-1.2.5.tar.tar
编译并安装没个程序
./configure
make
make install
中途可能需要先安装g++(apt-get install g++)

下面编译安装NGINX

./configure --with-pcre=../pcre --with-zlib=../zlib --with-http_ssl_module --with-openssl=../openssl --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_flv_module --with-debug

 

make

make install

安装好后,通过nginx -V查看版本和模块是否正确(V是大写哈)


 

 

 

 

 

 

相关文章:

  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2021-11-29
  • 2021-11-23
  • 2021-12-20
  • 2021-12-27
猜你喜欢
  • 2021-06-26
  • 2021-11-16
  • 2022-12-23
  • 2021-11-06
  • 2021-09-08
  • 2021-09-08
  • 2022-02-16
相关资源
相似解决方案