标签:http efi yum nss pen Opens erro prefix 编译
安装编译环境
yum install -y gcc gcc-c++ pcre-devel zlib zlib-devel openssl-devel ncurses ncurses-devel automake autoconf libtool make gd-devel perl perl-devel perl-ExtUtils-Embed
./configure \
--prefix=/data/app/nginx-1.8.0 \
--user=nginx \
--group=nginx \
--with-pcre \
--with-file-aio \
--with-http_ssl_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_realip_module \
--with-http_perl_module \
--with-http_image_filter_module \
--with-http_gzip_static_module \
--with-http_stub_status_module \
--pid-path=/var/run/nginx/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log
make
make install
ln -sv /data/app/nginx-1.8.0 /data/app/nginx
groupadd -r nginx
useradd -r -g nginx -s /sbin/nologin nginx
运行: /data/app/nginx-1.8.0/sbin/nginx
如果报错的话,根据提示 , 安装对应组件, yum 安装 依赖包 gd-devel :
yum install gd-devel
yum install perl perl-devel perl-ExtUtils-Embed
yum install libjpeg libjpeg-devel freetype freetype-devel libpng libpng-devel
nginx 手动编译安装简化版, 几个命令搞定。
标签:http efi yum nss pen Opens erro prefix 编译
原文地址:https://www.cnblogs.com/maizim/p/9488222.html