大家好,欢迎来到IT知识分享网。
nginx安装:
源码编译方式: 安装make: yum -y install autoconf automake make 安装g++: yum -y install gcc gcc-c++ #一般系统中已经装了了make和g++,无须再装 yum -y install pcre pcre-devel yum -y install zlib zlib-devel yum install -y openssl openssl-devel #安装nginx依赖的库 wget http://nginx.org/download/nginx-1.9.15.tar.gz tar -zxvf nginx-1.9.0.tar.gz cd nginx-1.9.0 ./configure --prefix=/usr/local/nginx --with-http_ssl_module #配置 #--prefix指定安装目录 #--with-http_ssl_module安装https模块 #creating objs/Makefile 代表编译成功 make && make install #make编译 #make install安装 yum方式: centos6:yum install epel-release -y #yum扩展源 yum install nginx -y 启停命令: ./nginx -c nginx.conf的文件。如果不指定,默认为NGINX_HOME/conf/nginx.conf 内网 ./nginx -c /usr/nginx/conf/nginx.conf ./nginx -s stop 停止 ./nginx -s quit退出 ./nginx -s reload 重新加载nginx.conf
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://haidsoft.com/128220.html