OpenStack Queens 源码安装 (2) 系统初始化
系统初始化
1、添加DNS
vi /etc/resolv.conf
nameserver 223.5.5.5
2、修改yum配置文件
修改yum配置文件保留yum文件
vi /etc/yum.conf
keepcache=1
3、设置系统时区为上海
# timedatectl set-timezone Asia/Shanghai
4、安装wget
#yum -y install wget
5、更改yum源为阿里源
cd /etc/yum.repos.d/
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
6、优化yum
#yum -y install yum-utils yum-axelget yum-fastestmirror ntp net-tools vim
7、同步服务器时间
#ntpdate time5.aliyun.com
配置epel官方源(可选)
#wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
#rpm -ivh epel-release-latest-6.noarch.rpm
8、关闭防火墙
#systemctl stop firewalld
#systemctl disable firewalld
9、关闭chronyd时间服务
#systemctl stop chronyd
#systemctl disable chronyd
10、关闭NetworkManager服务
#systemctl stop NetworkManager
#systemctl disable NetworkManager
11、修改主机名
#hostnamectl --static set-hostname node1
12、修改字符集
vim /etc/locale.conf
LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"
13关闭selinux
vi /etc/selinux/config
SELINUX=disabled
14、常用pgk包
yum -y install gcc gcc-c++ automake pciutils sudo nscd swig openssl openssl-devel openssh-clients libsodium jemalloc libffi-devel nss-pam-ldapd openldap-clients pam_ldap python-jinja2 lsof tcpdump nmap sysstat lrzsz vim dmidecode curl wget mlocate ntp bind-utils dnstracer telnet dstat strace iotop man rsync tree setuptool unzip yum-utils htop lspci gmp-devel libtidy libtidy-devel openldap-devel pciutils usbutils
15、安装pip
yum install python-pip -y
pip install --upgrade pip
16、下载软件包
cinder-12.0.0.tar.gz
glance-16.0.0.tar.gz
horizon-13.0.0.tar.gz
keystone-13.0.0.tar.gz
neutron-12.0.0.tar.gz
nova-17.0.1.tar.gz

浙公网安备 33010602011771号