-
nginx-status
发布于:2019-07-15 作者:Garany 评论(0) 引用(0) 浏览(1222) 分类:破万卷书
1.开启NGINX状态页stub_status # vim /etc/nginx/conf.d/default.conf server { listen *.80 default_server; server_name localhost _; location / { return 403; } location /nginx-status { stub_status on; access_log off; allow 127.0.0.1; deny all; } } 2.检测配置文件,重启NGINX # nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is success...
-
Dockerfile_lnmp
发布于:2017-07-14 作者:Garany 评论(1) 引用(0) 浏览(1514) 分类:破万卷书
1.准备文件 # pwd /data # tree ./ -L 2 ./ ├── docker │ ├── dockerfile │ ├── lnmp.sh │ └── ser1.conf └── lnmp ├── mysql └── web 4 directories, 3 files 2.dockerfile文件 # vim docker/dockerfile FROM centos:6 MAINTAINER garany@qq.com RUN rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm \ && yum install nginx mysql mysql-server m...
最新微语
最新文章
链接
最新评论
- JosephNerry 说:
我很乐意阅读 关于旅行的资源。非常好... - JosephNerry 说:
有教育意义的 出行资源! 你们真棒! 不... - Steveelife 说:
有教育意义的 旅游页面! 干得好! 这是... - JosephNerry 说:
能感受到热爱。谢谢 心情。 确实少有... - JosephNerry 说:
你们的项目 真的 打开世界。制作视频...