赞
踩
运行虚拟机
- [root@localhost ~]# systemctl disable firewalld
- Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
- Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
- [root@localhost ~]# systemctl stop firewalld
- [root@localhost ~]#
- [root@localhost ~]# systemctl disable NetworkManager
- Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
- Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
- Removed symlink /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service.
- [root@localhost ~]# systemctl stop NetworkManager
- [root@localhost ~]# chkconfig network on
- # 编辑配置文件/etc/sysconfig/network-scripts/网卡名称
-
- TYPE=Ethernet # 网络类型为以太网
- BOOTPROTO=none #ip获取方式,DHCP为自动获取,静态IP为none和static
- NAME=ens33 #网卡名称
- DEVICE=ens33 # 网卡设备名,设备名一定要跟文件名一致
- ONBOOT=yes # 该网卡是否随网络服务启动
- IPADDR=192.168.146.129 # 该网卡ip地址
- NETMASK=255.255.255.0 # 子网掩码
- GATEWAY=192.168.146.2 # 网关
- DNS1=8.8.8.8 # 8.8.8.8为Google提供的免费DNS服务器的IP地址
- DNS2=8.8.4.4 # 8.8.4.4为Google提供的免费DNS服务器的IP地址
-
- 重启网络管理服务
- # systemctl restart network
第三步:使用xshell工具远程连接
- [root@localhost ~]# hostnamectl set-hostname node-a
- [root@localhost ~]# bash
- [root@node-a ~]#
- [root@node-a ~]# vi /etc/hosts
- 192.168.xxx.xxx node-a node-a.localdomain
- [root@node-a ~]# vi /etc/environment
- [root@node-a ~]# cat /etc/environment
- LANG=en_US.utf-8
- LC_ALL=en_US.utf-8
- [root@node-a ~]# yum install -y chrony
- ...
- [root@node-a ~]# vi /etc/chrony.conf
- [root@node-a ~]# cat /etc/chrony.conf
-
- # 添加以下信息
- server ntp1.aliyun.com iburst
-
- # 重启Chrony服务使设置生效
- [root@node-a ~]# systemctl restart chronyd
-
- [root@node-a ~]# timedatectl set-timezone "Asia/Shanghai"
- [root@node-a ~]# timedatectl
- Local time: Mon 2024-03-11 13:55:33 CST
- Universal time: Mon 2024-03-11 05:55:33 UTC
- RTC time: Mon 2024-03-11 05:55:31
- Time zone: Asia/Shanghai (CST, +0800)
- NTP enabled: no
- NTP synchronized: no
- RTC in local TZ: no
- DST active: n/a
- [root@node-a ~]#
- [root@node-a ~]# yum -y update
- [root@node-a ~]# yum -y install centos-release-openstack-train
- [root@node-a ~]# yum -y update
- [root@node-a ~]# yum -y install openstack-packstack
[root@node-a ~]# packstack --allinone
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。