FPM 打包 nginx rpm 包
安装 FPM
yum install -y ruby rubygems ruby-devel gcc rpm-build# 移除默认源 gem sources --remove https://rubygems.org/ # 配置阿里源 gem sources -a https://mirrors.aliyun.com/rubygems/gem install fpm
编译 nginx
wget http://nginx.org/download/nginx-1.18.0.tar.gzyum install -y pcre-devel openssl-develtar xvf nginx-1.18.0.tar.gz cd nginx-1.18.0./configure --with-http_stub_status_module --with-http_ssl_module make
打包
其它命令
最后更新于