配置Linux终端背景色

bash
配置Linux终端背景色

修改.bashrc PS1="\[\e[37;40m\][\[\e[32;40m\]\u\[\e[37;40m\]@\h \[\e[35;40m\]\W\[\e [\]]\\$ \[\e[33;40m\]" PS1="\[\e[37;40m\][\[\e[32;40m\]\u\[\e[37;40m\]...

zabbix 端口监听

zabbix
zabbix 端口监听

文件 /etc/zabbix/zabbix_agentd.d/userparameter_ww.conf 添加一行

UserParameter=ww.tcpportlisten,python /etc/zabbix/check_listenport.py

Nginx 日志格式

nginx
Nginx 日志格式

配置文件 路径: /yourpath/nginx/nginx.conf参数:log_format main '[$time_local] $request_time $remote_addr $http_x_forwarded_for $status $request_method "$host$request_...

×
  • {title}