cd /root
FileName="Linux2.txt"
echo 主机名和IP | tee $FileName
ip address show | grep 'inet 10' | sort | awk '{print $2,$7}' | tee -a $FileName
grep nameserver /etc/resolv.conf | sort | tee -a $FileName
hostname | tee -a $FileName
echo mail服务 | tee -a $FileName
egrep mail[12] /etc/passwd | cut -d ':' -f 1 | tee -a $FileName
ss -ntul4|egrep "25|110|465|995" | awk '{print $5}' | tee -a $FileName
openssl x509 -in /etc/ssl/skills.crt -noout -subject -issuer -enddate -ext subjectAltName | tee -a $FileName
echo Welcome | mail -s "Hello" [email protected]
echo -e "1\nq\n" | mail -u mail1 | egrep "Subject|Welcome" | tee -a $FileName
echo -e "1\nq\n" | mail -u mail2 | egrep "Subject|Welcome" | tee -a $FileName
echo apache2 | tee -a $FileName
curl https://www.skills.com | tee -a $FileName
curl --cert /etc/ssl/skills.crt --key /etc/ssl/skills.key https://cs2.skills.com | tee -a $FileName
curl --cert /etc/ssl/skills.crt --key /etc/ssl/skills.key https://web.skills.com | tee -a $FileName
curl --cert /etc/ssl/skills.crt --key /etc/ssl/skills.key https://skills.com | tee -a $FileName
curl -I --cert /etc/ssl/skills.crt --key /etc/ssl/skills.key https://www.skills.com | tee -a $FileName
echo 防火墙 | tee -a $FileName
firewall-cmd --list-ports | tee -a $FileName
systemctl status named postfix dovecot httpd | egrep "Loaded:|Active:" | tee -a $FileName
2021年中职网络搭建与应用脚本验证
需积分: 5 197 浏览量
2023-03-07
16:25:42
上传
评论
收藏 10KB ZIP 举报
新时代先锋
- 粉丝: 1629
- 资源: 46
最新资源
- 封装swagger组件,提供全新UI以及无状态登录接口调用解决方案
- 小龙坎支局2024年4月渠道积分核对数据.xlam
- onlyoffice搭建及与alist使用的view.html
- Quadcopter-UAV-attitude-estimation-linux常用命令大全demo
- Quadcopter-UAV-attitude-estimation-based-on-数据库课程设计
- pbdlib-python-master.zip
- 43904245495352013_base.apk
- 基于springboot+vue + redis的工作流审批系统
- 【qt基础语法及实际案例解析】qt基础语法及实际案例解析
- 结课作业.psd
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈