作家
登录

DNMP架构使用与未来

作者: 来源: 2017-12-05 11:26:28 阅读 我要评论

 -it (id/name) nginx -s reload 从新生效设备 

跋文

docker作为一门新技巧,很好的改良了,传统开辟过程中,每小我的情况都有差别,导致同一个项目跑不合的电脑就是很常人,往往很轻易出现崩盘的情况,测试情况和线上情况的差距,导致很难同步,然则有了docker今后,一切都变得轻松清爽了,这是一门异常值得控制的技巧,至少它能立竿见影加快团队的开辟,这是异常值得普及的一门技巧。

nginx中 default.conf 设备

  1. server {   
  2.     listen       80;   
  3.     server_name  localhost;   
  4.    
  5.   
  6.     error_page   500 502 503 504  /50x.html;   
  7.     location = /50x.html {   
  8.         root   /usr/share/nginx/html;   
  9.     }   
  10.    
  11.     # proxy the PHP scripts to Apache listening on 127.0.0.1:80   
  12.     #   
  13.     #location ~ \.php$ {   
  14.     #    proxy_pass   http://127.0.0.1;   
  15.     #}   
  16.    
  17.     # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000   
  18.        
  19.     #location ~ \.php$ {   
  20.     #     root           /var/www/html;   
  21.     #     fastcgi_pass   172.17.0.3:9000;   
  22.     #     fastcgi_index  index.php;   
  23.     #     fastcgi_param  SCRIPT_FILENAME $document_root$fastcdi_script_name; 
  24.     #     include        fastcgi_params;   
  25.     # } 
  26.    
  27.     location ~ \.php$ { 
  28.        fastcgi_pass   172.17.0.3:9000; 
  29.        fastcgi_index  index.php; 
  30.        fastcgi_param  SCRIPT_FILENAME  /var/www/html$fastcgi_script_name; 
  31.        fastcgi_param  SCRIPT_NAME      $fastcgi_script_name; 
  32.        include        fastcgi_params; 
  33.     } 
  34.     # deny access to .htaccess files, if Apache's document root   
  35.     # concurs with nginx's one   
  36.     #   

  37.   推荐阅读

      Intel近三年CPU集体曝漏洞:技嘉首发新BIOS修复

    CTO练习营 | 12月3-5日,深圳,是时刻成为优良的技巧治理者了Intel比来宣布声明承认,自家近三年来的CPU处理器几乎全部存在多达11个安然马脚,可被用来加载、履行随便率性代码,导致设备不稳定甚至崩溃>>>详细阅读


    本文标题:DNMP架构使用与未来

    地址:http://www.17bianji.com/lsqh/39466.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)