排序
2.2.2安全秘钥验证
1.在客户机中生成“密钥对”。 [root@dsrw ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): 回车或设置密钥的存储路径 Ent...
14.5 反向代理
1.配置外网http服务器,地址:192.168.1.12/24 [root@dsrw ~]# yum install httpd -y 已安装: httpd-2.4.37-10.module+el8+2764+7127e69e.x86_64 apr-util-bdb-1.6.1-6.el8.x86_64 apr-util-ope...
3.2.3个人主页配置
1.修改个人主要配置文件 [root@dsrw ~]# vim /etc/httpd/conf.d/userdir.conf 17 # UserDir disabled 添加#号 24 UserDir public_html 去掉#号 2.在用户家目录中建立目录及首页面文件,并修改家...
8.4配置Dovecot服务程序
1.安装Dovecot服务程序。 [root@dsrw ~]# dnf install -y dovecot Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red H...
12.3配置Nginx
1.创建用于管理网站服务的系统账户。 -M参数不创建对应的家目录,-s参数指定登录后的Shell解释器为/sbin/nologin,确保不能通过这个账号登录主机。 [root@dsrw lnmp]# useradd nginx -M -s /sbi...
7.3配置固定IP地址
1.IP地址与某台主机进行绑定,就需要用到这台主机的MAC地址,win7下查看MAC地址。 图7-4 物理地址就是MAC地址 2.Linux下查看MAC地址。 [root@dsrw ~]# ifconfig ens160: flags=4163<UP,BROAD...
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...
11.7自动部署客户机
1.“新建虚拟机向导” 打开“新建虚拟机向导”程序,选择“自定义(高级)”配置类型,然后单击“下一步”按钮,如图19-6所示。在随后的虚拟机硬件兼容性选项中,选择默认的“Workstation 16.x...
5.3 Linux 挂载共享
1.客户端安装支持文件共享服务的软件包(cifs-utils)。 [root@dsrw ~]# smbclient -U dsrw -L 192.168.10.2 bash: smbclient: command not found... Failed to search for file: Cannot update...
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...