排序
2.3.3管理多窗格
1.使用“tmux split-window”命令可以创建上下切割的多窗格终端界面。 图2-16 水平窗口 2.使用“tmux split-window -h”命令可以创建左右切割的多窗格终端界面。 图2-17垂直窗口 “Ctrl+B +方向...
9.2运行临时命令
1.Ansible的常用模块 ping:检查受管主机的网络是否能够连通 yum:安装、更新及卸载软件包 yum_repository:管理主机的软件仓库配置文件 template:复制模板文件到受管主机 copy:新建、修改及...
10.1 mariadb服务
1.安装mariadb 1.安装mariadb [root@dsrw ~]# dnf install -y mariadb mariadb-server Updating Subscription Management repositories. Unable to read consumer identity This system is not ...
14.4 透明正向代理
1.安装squid服务程序 [root@dsrw ~]# yum install squid -y Installing: squid x86_64 7:4.4-4.module+el8+2479+dae5d0d3 AppStream 3.6 M 安装依赖关系: libecap x86_64 1.0.1-1.module+el8+24...
11.4 配置SYSLinux服务程序
1.安装SYSLinux [root@dsrw ~]# dnf install -y syslinux Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subsc...
9.4.3自行创建角色
1.配置Ansible的主配置文件中。 [root@dsrw ~]# cd /etc/ansible/roles [root@dsrw roles]# vim /etc/ansible/ansible.cfg 67#additionalpathstosearchforrolesin,colonseparated 68#roles_path...
6.2安装bind服务程序BIND
1.安装BIND服务扩展包chroot(俗称牢笼机制) chroot功能的优点是:如果有黑客通过Bind侵入系统,也只能被限定在chroot目录及其子目录中,其破坏力也仅局限在该虚拟目录中,不会威胁到整个服务...
13.7开启Linux的路由功能、设置防火墙和NAT
#ens192为外网网卡, ens160为内网网卡 [root@dsrw ~]# iptables -F [root@dsrw ~]# iptables -A FORWARD -i ens160 -j ACCEPT [root@dsrw ~]# iptables -t nat -A POSTROUTING -s 192.168.1.0/2...
13.2安装ppp、pptpd软件包
[root@dsrw yum.repos.d]# yum -y install pptpd ppp Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscript...
8.6 设置用户别名信箱
1.向bin发一份邮件 图8-6 向bin用户发送邮件 2.切换用户,查看邮件 [root@mail ~]# su - bin This account is currently not available. 您在 /var/spool/mail/root 中有新邮件 [root@mail ~]# ...








