第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

Centos7.4(阿里云環(huán)境)安裝Nginx1.15.1

標(biāo)簽:
Java
安装依赖
   yum install -y openssl-devel pcre-devel
预安装
   cd /usr/local
   mkdir tools
   cd tools
   wget http://nginx.org/download/nginx-1.15.1.tar.gz
   tar -zxvf nginx-1.15.1.tar.gz
   cd nginx-1.15.1
增加nginx用户
   useradd -s /sbin/nologin -M nginx
   id nginx

不加nginx用户的话,启动会失败

设置隐藏nginx版本号以及nginx名称
   vim src/core/nginx.h
   vim src/http/ngx_http_header_filter_module.c
   vim src/http/ngx_http_special_response.c

将三个文件中涉及NGINX_VERSION的值都做下修改

正式安装nginx
   ./configure --prefix=/usr/local/nginx --with-http_dav_module --with-http_stub_status_module  --with-http_addition_module --with-http_sub_module  --with-http_flv_module --with-http_mp4_module --with-pcre --with-http_ssl_module --with-http_gzip_static_module  --user=nginx  --group=nginx 
   make && make install

--with-http_dav_module #增加PUT,DELETE,MKCOL:创建集合,COPY和MOVE方法
--with-http_stub_status_module #获取Nginx的状态统计信息
--with-http_addition_module #作为一个输出过滤器,支持不完全缓冲,分部分相应请求
--with-http_sub_module #允许一些其他文本替换Nginx相应中的一些文本
--with-http_flv_module #提供支持flv视频文件支持
--with-http_mp4_module #提供支持mp4视频文件支持,提供伪流媒体服务端支持
--with-http_ssl_module #启用ngx_http_ssl_module

将nginx添加到/usr/local/sbin/
   ln -s /usr/local/nginx/sbin/nginx /usr/local/sbin/
启动nginx
   nginx
重新加载nginx配置文件
   nginx -s reload
将nginx根目录指向/data数据盘
   vim conf/nginx.conf

修改 /root html -> /root /data

點擊查看更多內(nèi)容
TA 點贊

若覺得本文不錯,就分享一下吧!

評論

作者其他優(yōu)質(zhì)文章

正在加載中
  • 推薦
  • 評論
  • 收藏
  • 共同學(xué)習(xí),寫下你的評論
感謝您的支持,我會繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦
今天注冊有機會得

100積分直接送

付費專欄免費學(xué)

大額優(yōu)惠券免費領(lǐng)

立即參與 放棄機會
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號

舉報

0/150
提交
取消