排序
3.2.4通过在网站中添加密码功能访问个人主页
1.使用htpasswd命令生成密码数据库。 -c参数表示第一次生成;再分别添加密码数据库的存放文件,以及验证要用到的用户名称(不必是系统中已有的本地账户)。 [root@dsrw ~]# htpasswd -c /etc/ht...
11.6创建Kickstart应答文件
1.复制应答文件并修改权限 [root@dsrw ~]# cp anaconda-ks.cfg /var/ftp/pub/ks.cfg [root@dsrw ~]# chmod +r /var/ftp/pub/ks.cfg 2.配置应答文件 [root@dsrw ~]# vim /var/ftp/pub/ks.cfg 8 r...
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...
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...
11.3配置TFTP服务程序
1.安装TFTP服务 [root@dsrw ~]# dnf install -y tftp-server xinetd Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red...
第2章 ssh服务-2.1 配置网络服务-2.1.1配置网卡参数
1.使用nmtui工具命令来配置网络 图2-1 执行nmtui命令运行网络配置工具 2.nmtui图文管理器 图2-2选中编辑连接并按下回车键 3.选择网卡ens160,选择编辑按钮。 图2-3 选中要配置的网卡名称,然后...