cat >> /etc/nginx/conf.d/status.conf << EOF

server{

    listen ;

    server_name www.test2.com;

    location / {

        stub_status on;

        access_log /usr/local/nginx/logs/status.log;

    }

}

EOF

[root@www conf.d]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@www conf.d]# nginx -s reload
[root@www conf.d]#
[root@www conf.d]#
[root@www conf.d]# curl http://192.168.1.204:8085
Active connections:
server accepts handled requests Reading: Writing: Waiting: Active connections 就是显示的并发量

最新文章

  1. PHP 开发API接口签名验证
  2. [LeetCode] All solution
  3. spark读取hbase数据
  4. AsyncOperation变成同步的代码
  5. 洛谷P2246 SAC#1 - Hello World(升级版)
  6. Maven排除项目中同名不同版本的jar
  7. [转]linux /proc/cpuinfo 文件分析
  8. 连连看的设计与实现——四人小组项目(NABCD)
  9. emWin(ucGui)数值显示例程 -【worldsing笔记】
  10. GDB基本调试
  11. Linux 命令 - find: 搜索文件
  12. hellogcc -100GDB技巧
  13. [面经] 南京SAP面试(上)
  14. java_监控工具jvisualvm
  15. 1. [mmc subsystem] 概念与框架
  16. 软件测试:第二次作业(JUnit单元测试方法)
  17. C#解决方案生成工具
  18. react-native-video
  19. Python中的 redis keyspace 通知
  20. vue js 在组件中对数组使用splice() 遇到的坑。。。

热门文章

  1. SVN 安装教程
  2. Codeforces Round #581 (Div. 2) B. Mislove Has Lost an Array (贪心)
  3. spring+mybatis 多数据源的配置
  4. UVALive - 3510 Pixel Shuffle (置换)
  5. Redis 管道pipeline
  6. autofs 自动挂载.
  7. php的流程控制 if elseif swich case for循环
  8. 常见的 DOCTYPE 声明
  9. Python 面向对象Ⅳ
  10. ping —— 虚拟机