安装ngiux

首先下载nginx -1.9.9tar gz 压缩包到Windows

yum install lrzsz -y  安装上传下载的包

然后上传到linux里

创建一个脚本nginx.sh

#bin/bash
yum -y install gcc gcc-c++ vim tree make cmake autoconf
yum -y install openssl openssl-devel openssl-clients curl curl-devel
yum -y install wget rsync expect readline readline-devel bison bison-devel
yum -y install pcre pcre-devel zlib-devel zlib freetype freetype-devel man
yum -y install lrzsz tar iostat bc zip unzip lvm2 sysstat
yum -y install gd-devel
yum -y install openssl openssl-devel

#user
useradd nginx -s /sbin/nologin -M
cd /etc/tools
tar xf nginx-1.9.9.tar.gz
cd nginx-1.9.9

./configure
--prefix=/opt/lnmp_zabbix/nginx
--user=nginx
--group=nginx
--conf-path=/opt/lnmp_zabbix/nginx/conf/nginx.conf
--error-log-path=/opt/lnmp_zabbix/nginx/log/error.log
--http-log-path=/opt/lnmp_zabbix/nginx/log/access.log
--http-client-body-temp-path=/opt/lnmp_zabbix/nginx/client/
--http-proxy-temp-path=/opt/lnmp_zabbix/nginx/proxy/
--http-fastcgi-temp-path=/opt/lnmp_zabbix/nginx/fcgi/
--http-uwsgi-temp-path=/opt/lnmp_zabbix/nginx/uwsgi
--http-scgi-temp-path=/opt/lnmp_zabbix/nginx/scgi --with-pcre
--with-http_ssl_module
--with-http_flv_module

--with-http_gzip_static_module

--with-http_stub_status_module
--with-http_realip_module
--pid-path=/opt/lnmp_zabbix/nginx/nginx.pid
--with-file-aio --with-http_image_filter_module
--with-stream

make && make install

 

 

然后加执行权限chmod +x nginx.sh

然后运行ngiux:./nginx.sh

完成后echo $?   查看运行完的状态

查看语法

安装ngiux

 

 

启动

./nginx

 安装查看进程工具yum install -y net-tools

查看进程  netstat -lntup

安装ngiux

 

 进入 网页输入IP

安装ngiux

 

原文链接: https://www.cnblogs.com/yun9678/p/13140091.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍;

也有高质量的技术群,里面有嵌入式、搜广推等BAT大佬

    安装ngiux

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/355714

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年3月2日 上午10:29
下一篇 2023年3月2日 上午10:29

相关推荐