跋文
docker作为一门新技巧,很好的改良了,传统开辟过程中,每小我的情况都有差别,导致同一个项目跑不合的电脑就是很常人,往往很轻易出现崩盘的情况,测试情况和线上情况的差距,导致很难同步,然则有了docker今后,一切都变得轻松清爽了,这是一门异常值得控制的技巧,至少它能立竿见影加快团队的开辟,这是异常值得普及的一门技巧。
nginx中 default.conf 设备
- server {
- listen 80;
- server_name localhost;
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- # proxy the PHP scripts to Apache listening on 127.0.0.1:80
- #
- #location ~ \.php$ {
- # proxy_pass http://127.0.0.1;
- #}
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
- #location ~ \.php$ {
- # root /var/www/html;
- # fastcgi_pass 172.17.0.3:9000;
- # fastcgi_index index.php;
- # fastcgi_param SCRIPT_FILENAME $document_root$fastcdi_script_name;
- # include fastcgi_params;
- # }
- location ~ \.php$ {
- fastcgi_pass 172.17.0.3:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
- fastcgi_param SCRIPT_NAME $fastcgi_script_name;
- include fastcgi_params;
- }
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- #
推荐阅读
CTO练习营 | 12月3-5日,深圳,是时刻成为优良的技巧治理者了Intel比来宣布声明承认,自家近三年来的CPU处理器几乎全部存在多达11个安然马脚,可被用来加载、履行随便率性代码,导致设备不稳定甚至崩溃>>>详细阅读
本文标题:DNMP架构使用与未来
地址:http://www.17bianji.com/lsqh/39466.html
1/2 1