国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

Nginx 一點一滴 01 - 安裝運行

FWHeart / 3504人閱讀

摘要:這時才發現上面的配置錯誤,必須用絕對路徑,不能用形如符號卸載重裝的正確姿勢查看當前版本版本信息這里要重定向才可以輸出到文件哦之后,進程是重新創建了的里面保存的是的主進程號

GET THE CODE
ganiks ?  nginx-1.8.0  wget http://nginx.org/download/nginx-1.8.0.tar.gz 
ganiks ?  nginx-1.8.0  tar xzvf nginx-1.8.0.tar.gz
ganiks ?  nginx-1.8.0  pwd
/home/ganiks/learn/nginx/nginx180_source/nginx_180_Compile/nginx-1.8.0
CONFIGURE
ganiks ?  nginx-1.8.0  ./configure --prefix=~/home/ganiks/learn/nginx/Nginx
checking for OS
 + Linux 3.13.0-43-generic x86_64
checking for C compiler ... found
 + using GNU C compiler
 + gcc version: 4.8.2 (Ubuntu 4.8.2-19ubuntu1) 
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
bla bla bla ...
bla bla bla ...
bla bla bla ...
checking for sha1 in system OpenSSL crypto library ... found
checking for zlib library ... found
creating objs/Makefile 

Configuration summary  
  + using system PCRE library
  + OpenSSL library is not used
  + md5: using system crypto library
  + sha1: using system crypto library
  + using system zlib library

  nginx path prefix: "~/learn/nginx/Nginx"
  nginx binary file: "~/learn/nginx/Nginx/sbin/nginx"
  nginx configuration prefix: "~/learn/nginx/Nginx/conf"
  nginx configuration file: "~/learn/nginx/Nginx/conf/nginx.conf"
  nginx pid file: "~/learn/nginx/Nginx/logs/nginx.pid"
  nginx error log file: "~/learn/nginx/Nginx/logs/error.log"
  nginx http access log file: "~/learn/nginx/Nginx/logs/access.log"
  nginx http client request body temporary files: "client_body_temp"
  nginx http proxy temporary files: "proxy_temp"
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: "scgi_temp"
MAKE && MAKE INSTALL
ganiks ?  nginx-1.8.0  make && sudo make install
  

這時才發現上面的--prefix配置錯誤, 必須用絕對路徑,不能用形如~符號

MAKE CLEAN
ganiks ?  nginx-1.8.0  sudo rm -rf ~
ganiks ?  nginx-1.8.0  make clean
  

卸載重裝Nginx的正確姿勢

CONFIGURE && INSTALL AGAIN
ganiks ?  nginx-1.8.0  ./configure --prefix=/home/ganiks/learn/nginx/Nginx

  nginx path prefix: "/home/ganiks/learn/nginx/Nginx"
  nginx binary file: "/home/ganiks/learn/nginx/Nginx/sbin/nginx"
  nginx configuration prefix: "/home/ganiks/learn/nginx/Nginx/conf"
  nginx configuration file: "/home/ganiks/learn/nginx/Nginx/conf/nginx.conf"
  nginx pid file: "/home/ganiks/learn/nginx/Nginx/logs/nginx.pid"
  nginx error log file: "/home/ganiks/learn/nginx/Nginx/logs/error.log"
  nginx http access log file: "/home/ganiks/learn/nginx/Nginx/logs/access.log"
  nginx http client request body temporary files: "client_body_temp"
  nginx http proxy temporary files: "proxy_temp"
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: "scgi_temp"

ganiks ?  nginx-1.8.0  make; make install

ganiks ?  nginx  tree Nginx
Nginx
├── conf
│?? ├── fastcgi.conf
│?? ├── fastcgi.conf.default
│?? ├── fastcgi_params
│?? ├── fastcgi_params.default
│?? ├── koi-utf
│?? ├── koi-win
│?? ├── mime.types
│?? ├── mime.types.default
│?? ├── nginx.conf
│?? ├── nginx.conf.default
│?? ├── scgi_params
│?? ├── scgi_params.default
│?? ├── uwsgi_params
│?? ├── uwsgi_params.default
│?? └── win-utf
├── html
│?? ├── 50x.html
│?? └── index.html
├── logs
└── sbin
    └── nginx

ganiks ?  Nginx  pwd
/home/ganiks/learn/nginx/Nginx
VERSION
  

查看當前Nginx版本版本信息

ganiks ?  Nginx  ./sbin/nginx -V
nginx version: nginx/1.8.0
built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
configure arguments: --prefix=/home/ganiks/learn/nginx/Nginx

ganiks ?  Nginx  ./sbin/nginx -V 2>&1 > some_file
  

這里要重定向才可以輸出到文件哦

START NGINX
ganiks ?  Nginx  ./sbin/nginx -p .
nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
ganiks ?  Nginx  vim conf/nginx.conf && listen 8765
ganiks ?  Nginx  ./sbin/nginx -p .  
ganiks ?  Nginx  sudo ps -ef | grep nginx             
ganiks   21174     1  0 15:32 ?        00:00:00 nginx: master process ./sbin/nginx -p .
ganiks   21175 21174  0 15:32 ?        00:00:00 nginx: worker process
ganiks   21182 20842  0 15:32 pts/4    00:00:00 grep nginx


ganiks ?  Nginx  ./sbin/nginx -t
nginx: the configuration file /home/ganiks/learn/nginx/Nginx/conf/nginx.conf syntax is ok
nginx: configuration file /home/ganiks/learn/nginx/Nginx/conf/nginx.conf test is successful
ganiks ?  Nginx  ./sbin/nginx -s reload
ganiks ?  Nginx  sudo ps -ef | grep nginx
ganiks   21174     1  0 15:32 ?        00:00:00 nginx: master process ./sbin/nginx -p .
ganiks   21290 21174  0 15:35 ?        00:00:00 nginx: worker process
ganiks   21294 20842  0 15:35 pts/4    00:00:00 grep nginx
ganiks ?  Nginx  ./sbin/nginx -s reload   
ganiks ?  Nginx  sudo ps -ef | grep nginx 
ganiks   21174     1  0 15:32 ?        00:00:00 nginx: master process ./sbin/nginx -p .
ganiks   21308 21174  0 15:35 ?        00:00:00 nginx: worker process
ganiks   21313 20842  0 15:35 pts/4    00:00:00 grep nginx
  

nginx reload 之后, worker 進程是重新創建了的

ganiks ?  Nginx  cat logs/nginx.pid
21174
  

nginx.pid 里面保存的是nginx的主進程號

文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。

轉載請注明本文地址:http://m.specialneedsforspecialkids.com/yun/39191.html

相關文章

  • # Oracle APEX 系列文章8:如何從 APEX 5.1.4 升級到最新的 APEX 18.

    摘要:停止當前,服務。鋼哥注如果想把里的替換成別的,比如,需要在先將重命名為,然后再跑命令完成安裝和部署動作。輸入對應的賬號后,檢查之前的應用也都能正常運行,完美結語以上就是如何從之前的升級到最新的版本的實操,希望老鐵們喜歡。 showImg(https://segmentfault.com/img/remote/1460000015087005); 本文是鋼哥的 Oracle APEX 系...

    Hancock_Xu 評論0 收藏0
  • 在 Docker 中構建基于 Puppet 的應用

    摘要:通過創建一個的來構建一個應用程序是非常容易的。我們將使用這個鏡像來作為我們新的應用程序鏡像的基礎鏡像。現在我們需要為我們的應用程序鏡像創建另外一個。你可以重復這個步驟安裝任何基于的應用或者是基礎設施。 通過創建一個 Docker 的 Dockerfile 來構建一個應用程序是非常容易的。但是如果你已經有了大量的 Puppet 模塊(或者是 Chef cookbooks),你想把這些模塊...

    NoraXie 評論0 收藏0

發表評論

0條評論

最新活動
閱讀需要支付1元查看
<