Loading... ip地址规划 mariadb1 192.168.175.150 主 mariadb2 192.168.175.152 从 apache(HTTPD) 192.168.175.153 php 192.168.175.154 步骤: 0、安装一些必要的组件 yum install vim yum install ifconfig yum install wget 1、创建一台新的主机,并配置静态ip地址 编辑网卡信息: vi /etc/sysconfig/network-scripts/ifcfg-ens网卡号 查看网卡号&ip地址: ip addr 重启网卡: service network restart 2、安装服务: yum install mariadb -y yum install mariadb-server -y yum install httpd yum install php 3、systemctl一些用法 设置自启动: systemctl enable 服务名 关闭自启动: systemctl disable 服务名 查看启动状态 systemctl status 服务名 停用服务: systemctl stop 服务名 启动服务: systemctl start 服务名 4、禁用防火墙: systemctl stop firewalld 5、关闭防火墙自启动 systemctl disable firewalld 最后修改:2024 年 01 月 24 日 © 允许规范转载 打赏 赞赏作者 赞 咱们谁跟谁,用不着~