摘要: 目录 邮件服务简介 配置邮件服务前提要求 Sendmail安装配置 Dovecot服务配置 测试邮件收发 Sendmail别名配置 配置openwebmail网页邮箱 简介: 邮件系统包括:服务端(SMTP)和客户端(POP3,IMAP) SMTP简单邮件传输协议(port:25):应用层协议,由T 阅读全文
posted @ 2020-07-01 12:54 HeiDi_BoKe 阅读(2034) 评论(0) 推荐(0) 编辑
摘要: [root@rhel8 shell]# vi modify_passwd.sh [root@rhel8 shell]# cat modify_passwd.sh #!/bin/bash ######################################################### 阅读全文
posted @ 2020-06-22 19:16 HeiDi_BoKe 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 一、只从文件读取 [root@rhel8 shell]# cat ping.sh #!/bin/bash # 判断是否有输入参数 if [ $# -eq 0 ];then # basename:只输出路劲的最后一个名称 echo -e "\033[34mUsage: `basename $0` fi 阅读全文
posted @ 2020-06-22 14:09 HeiDi_BoKe 阅读(1614) 评论(0) 推荐(0) 编辑
摘要: [root@rhel8 shell]# cat auto_yum_config.sh #!/bin/bash ########################################################################## # yum config case # 阅读全文
posted @ 2020-06-19 19:58 HeiDi_BoKe 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 脚本内容 [root@rhel8 shell]# cat /home/alice/jumpserver.sh #!/bin/bash ########################################################################## # jumpse 阅读全文
posted @ 2020-06-19 14:56 HeiDi_BoKe 阅读(714) 评论(0) 推荐(0) 编辑
摘要: 自动获取服务器系统信息: 创建数据库表(这里没有写入数据库中): [root@rhel8 shell]# vim audit_audit_system.sql CREATE TABLE `audit_audit_system`( `id` int(11) NOT NULL AUTO_INCREMEN 阅读全文
posted @ 2020-06-11 16:47 HeiDi_BoKe 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 安装sz和rz命令: # yum -y install lrzsz sz、rz命令使用: sz:将本地文件上传到其他系统或计算机上 语法:sz 文件名 在linux系统上使用sz命令回车后弹出选择文件存放的路径,然后选择存放文件的目录,点确定即可 rz:下载文件到本地。将计算机文件下载到本地 阅读全文
posted @ 2020-06-11 16:21 HeiDi_BoKe 阅读(2717) 评论(0) 推荐(0) 编辑
摘要: # 全备份: [root@rhel8 shell]# tar -g /tmp/snapshot -czvf /tmp/20200610_full_bak.tar.gz /data/www1/ # 增量备份 [root@rhel8 www1]# tar -g /tmp/snapshot -czvf / 阅读全文
posted @ 2020-06-10 17:36 HeiDi_BoKe 阅读(800) 评论(0) 推荐(0) 编辑
摘要: [root@rhel8 shell]# cat auto_deny_ip.sh #!/bin/bash # auto drop ssh failded IP address # by author tanbaobao 2020/06/10 # 定义变量 SEC_FILE=/var/log/secur 阅读全文
posted @ 2020-06-10 12:52 HeiDi_BoKe 阅读(504) 评论(0) 推荐(0) 编辑
摘要: [root@rhel8 shell]# cat auto_network_scripts.sh #!/bin/bash # Auto Make KVM Virtualization # Auto config bond scripts # by author tanbaobao 2020/06/09 阅读全文
posted @ 2020-06-09 20:14 HeiDi_BoKe 阅读(298) 评论(0) 推荐(0) 编辑