nginx1.15.8源码编译安装

网友投稿 921 2022-10-07

nginx1.15.8源码编译安装

nginx1.15.8源码编译安装

1.创建nginx用户

[root@mysql /]# groupadd -r nginx[root@mysql /]# useradd -r -g nginx nginx

2.安装nginx依赖包

[root@mysql /]# yum groupinstall -y "Development tools"[root@mysql /]# yum install -y gcc wget gcc-c++ automake autoconf libtool libxml2-devel libxslt-devel perl-devel perl-ExtUtils-Embed pcre-devel openssl-devel

3.创建/nginx安装目录

[root@mysql /]# mkdir /nginx[root@mysql /]# tar xvf nginx-1.15.8.tar.gz -C /nginx/

4.-echo模块​

[root@mysql /]# cd /nginx[root@mysql /]# git clone /]# cd /nginx/nginx-1.15.8[root@mysql nginx-1.15.8]# ./configure /--prefix=/nginx /--sbin-path=/nginx/sbin/nginx /--conf-path=/nginx/conf/nginx.conf /--error-log-path=/nginx/log/error.log /--/--pid-path=/nginx/run/nginx.pid /--lock-path=/nginx/run/nginx.lock /--/--/--/--/--/--user=nginx /--group=nginx /--with-pcre /--with-/--with-/--with-/--with-/--with-/--with-/--with-/--with-/--with-/--with-/--with-/--with-/--with-/--with-/--with-mail /--with-mail_ssl_module /--with-file-aio /--with-/--with-threads /--with-stream /--with-stream_ssl_module /--add-module=/nginx/echo-nginx-module[root@mysql nginx-1.15.8]# make && make install[root@mysql nginx-1.15.8]# mkdir -p /nginx/nginx-1.15.8/tmp/client[root@mysql nginx-1.15.8]# ln -s /nginx/nginx-1.15.8/sbin/nginx /usr/bin/nginx

6.启动nginx

[root@mysql nginx-1.15.8]# nginx

7.访问nginx​

nginx

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:关于Pandas的DataFrame建立数据问题
下一篇:微信小程序如何实现美团菜单(美团怎么添加小程序)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~