• nginx-status

    发布于:2019-07-15 作者:Garany 评论(0) 引用(0) 浏览(682)   分类:破万卷书  

    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) 浏览(1004)   分类:破万卷书  

    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...

    阅读全文>>