随笔分类 -  nginx

摘要:upstream consul { server 127.0.0.1:8501; server 127.0.0.1:8502; server 127.0.0.1:8503; } server { listen 80; server_name consul.test.com;#服务域名,需要填写你的服务域名 location ... 阅读全文
posted @ 2019-05-12 12:44 王东波 阅读(70) 评论(0) 推荐(0)
摘要:1,下载nginx镜像 2,启动 3,创建本地目录 4,复制容器中的配置文件到本地目录 5,启动新容器 命令说明: -p 8082:80: 将容器的 80 端口映射到主机的 8082 端口。 --name runoob-nginx-test-web:将容器命名为 runoob-nginx-test- 阅读全文
posted @ 2019-05-12 12:26 王东波 阅读(127) 评论(0) 推荐(0)
摘要:location ~ [^/]\.php(/|$) { #fastcgi_pass remote_php_ip:9000; fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(.*)$; ... 阅读全文
posted @ 2019-02-18 10:03 王东波 阅读(60) 评论(0) 推荐(0)