12 2020 档案
摘要:由于业务需要使用php7.4运行环境,编译安装好PHP7.4,并做好systemd服务管理文件,发现用systemctl start php-fpm.service 时无法正常启动php-fpm,报了一个很奇怪的错。 ERROR: failed to open error_log (/usr/loc
阅读全文
摘要:#!/bin/bash #Author: Eddie.Peng nginx_status_fun(){ #nginx状态函数 NGINX_PORT=$1 #nginx监听端口,函数的第一个参数是脚本的第二个参数,即脚本的第二个参数是端口号 NGINX_COMMAND=$2 #命令,函数的第二个参数是
阅读全文
摘要:#!/bin/bash tcp_conn_status(){ TCP_STAT=$1 ss -ant | awk 'NR>1 {++s[$1]} END {for(k in s) print k,s[k]}' > /tmp/tcp_conn.txt TCP_NUM=$(grep "$TCP_STAT
阅读全文