摘要:這時(shí)才發(fā)現(xiàn)上面的配置錯誤,必須用絕對路徑,不能用形如符號卸載重裝的正確姿勢查看當(dāng)前版本版本信息這里要重定向才可以輸出到文件哦之后,進(jìn)程是重新創(chuàng)建了的里面保存的是的主進(jìn)程號
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.0CONFIGURE
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
MAKE CLEAN這時(shí)才發(fā)現(xiàn)上面的--prefix配置錯誤, 必須用絕對路徑,不能用形如~符號
ganiks ? nginx-1.8.0 sudo rm -rf ~ ganiks ? nginx-1.8.0 make clean
CONFIGURE && INSTALL AGAIN卸載重裝Nginx的正確姿勢
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/NginxVERSION
查看當(dāng)前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 進(jìn)程是重新創(chuàng)建了的
ganiks ? Nginx cat logs/nginx.pid 21174
nginx.pid 里面保存的是nginx的主進(jìn)程號
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://specialneedsforspecialkids.com/yun/39191.html
摘要:停止當(dāng)前,服務(wù)。鋼哥注如果想把里的替換成別的,比如,需要在先將重命名為,然后再跑命令完成安裝和部署動作。輸入對應(yīng)的賬號后,檢查之前的應(yīng)用也都能正常運(yùn)行,完美結(jié)語以上就是如何從之前的升級到最新的版本的實(shí)操,希望老鐵們喜歡。 showImg(https://segmentfault.com/img/remote/1460000015087005); 本文是鋼哥的 Oracle APEX 系...
摘要:通過創(chuàng)建一個(gè)的來構(gòu)建一個(gè)應(yīng)用程序是非常容易的。我們將使用這個(gè)鏡像來作為我們新的應(yīng)用程序鏡像的基礎(chǔ)鏡像。現(xiàn)在我們需要為我們的應(yīng)用程序鏡像創(chuàng)建另外一個(gè)。你可以重復(fù)這個(gè)步驟安裝任何基于的應(yīng)用或者是基礎(chǔ)設(shè)施。 通過創(chuàng)建一個(gè) Docker 的 Dockerfile 來構(gòu)建一個(gè)應(yīng)用程序是非常容易的。但是如果你已經(jīng)有了大量的 Puppet 模塊(或者是 Chef cookbooks),你想把這些模塊...
閱讀 1946·2021-11-15 17:58
閱讀 2133·2021-10-19 11:45
閱讀 3490·2021-09-02 15:40
閱讀 2599·2021-07-25 10:50
閱讀 3748·2019-08-30 15:56
閱讀 3151·2019-08-30 12:44
閱讀 1031·2019-08-26 13:38
閱讀 1874·2019-08-23 18:29