摘要: 进一步学习中,目前不是很了解 查看现有服务状态 systemctl status httpd.service #查看httpd服务状态信息 systemctl restart httpd.service #启动httpd服务,确认具体信息 journalctl -xe #跳转到页尾,查看最近系统日志 阅读全文
posted @ 2023-09-15 09:37 独行侠丶龙龙 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 2、配置默认存储库 配置yum-config-manager curl 'http://foundation0.ilt.example.com/dvd/BaseOS/' #命令打开页面,确认页面下数据;注意尾部需要加/,否则将报错 curl 'http://foundation0.ilt.examp 阅读全文
posted @ 2023-09-14 16:22 独行侠丶龙龙 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 1、配置主机名,配置主机网络 配置主机名 sshpass -p flectrag ssh root@172.25.250.10 #登录node1 hostnamectl set-hostname node1.domain250.example.com #更改主机名 bash #运行bash,以便确认 阅读全文
posted @ 2023-09-14 16:18 独行侠丶龙龙 阅读(17) 评论(0) 推荐(0) 编辑
摘要: > 利用for循环语句, # 方案一 ##### > 定义1到10的变量,for语句引用该变量 ### 单行代码 `list="1 2 3 4 5 6 7 8 9 10"; for i in $list; do echo $i; done` ### 多行代码 for……do……done ``` li 阅读全文
posted @ 2023-08-28 16:47 独行侠丶龙龙 阅读(228) 评论(0) 推荐(0) 编辑