摘要: 软件解压后安装基础指令(复制用):./configure && make && make install ./configure --prefix=/usr/local/ #安装到指定路径 【更新yum及epel-release】yum -y update --allowerasing &&yum 阅读全文

posted @ 2022-09-16 10:28 brad1208 阅读(97) 评论(0) 推荐(0) 编辑

摘要: linux常用指令记录 Python3.9.9安装 supervisor安装与监控nginx 使用supervisor监控mysql supervisor监控tomcat配置文件 nginx-1.22.0版本安装 nginx 安装篇-1.19.9版本源码安装 nginx 安装篇-yum安装 ngin 阅读全文

posted @ 2022-09-08 13:09 brad1208 阅读(36) 评论(0) 推荐(0) 编辑

2024年4月26日

摘要: 1、环境安装 yum install -y sendmail yum install -y mailx 2、检查sendmail服务 启动:systemctl start sendmail.service 状态查看:systemctl status sendmail.service 设置开机启动:s 阅读全文

posted @ 2024-04-26 17:42 brad1208 阅读(21) 评论(0) 推荐(0) 编辑

2024年4月3日

摘要: 检查配置:cat /etc/systemd/system/nginx.service 没有的话就创建或编辑配置:vim /etc/systemd/system/nginx.service,注意修改nginx实际配置路径 [Unit]Description=The NGINX HTTP and rev 阅读全文

posted @ 2024-04-03 13:52 brad1208 阅读(20) 评论(0) 推荐(0) 编辑

2024年4月1日

该文被密码保护。 阅读全文

posted @ 2024-04-01 14:54 brad1208 阅读(0) 评论(0) 推荐(0) 编辑

2023年8月2日

摘要: 创建一个脚本,比如:/opt/port_stats.sh,脚本内容: #!/bin/bash # 设置要监控的端口列表ports=({80,8080,456}) # 执行一次循环for port in "${ports[@]}"; do num=$(netstat -nat | grep ":"$p 阅读全文

posted @ 2023-08-02 16:11 brad1208 阅读(217) 评论(0) 推荐(0) 编辑

2023年5月29日

摘要: 1、firewalld的基本使用启动: systemctl start firewalld关闭: systemctl stop firewalld查看状态: systemctl status firewalld 开机禁用 : systemctl disable firewalld开机启用 : sys 阅读全文

posted @ 2023-05-29 16:44 brad1208 阅读(24) 评论(0) 推荐(0) 编辑