2019年4月8日

linux优化

摘要: 1 #!/bin/bash 2 echo "* soft nofile 1048576" >> /etc/security/limits.conf 3 echo "* hard nofile 1048576" >> /etc/security/limits.conf 4 5 echo "fs.file-max = 1048576" >> /etc/sysctl.conf 6 ... 阅读全文

posted @ 2019-04-08 20:54 明.Sir 阅读(234) 评论(0) 推荐(0) 编辑

nginx配置文件简述

摘要: #nginx进程,一般设置为和cpu核数一样worker_processes 4; #错误日志存放目录 error_log /data1/logs/error.log crit; #运行用户,默认即是nginx,可不设置user nginx #进程pid存放位置pid /application/ng 阅读全文

posted @ 2019-04-08 13:26 明.Sir 阅读(260) 评论(0) 推荐(0) 编辑

导航