标签:数据库密码 检查 memcache show 时间 安装教程 for linux centos
ifconfig
cd /etc/sysconfig/network-scripts/
vim ifcfg-eth0s3
systemctl restart network.service
vim /etc/hosts
修改主机名,修改完需要重启
vim /etc/hostname
[控制节点安装NTP]
# yum install chrony (安装软件包)
# vi /etc/chrony.conf
server NTP_SERVER iburst 将原本servcer注释掉,增加这行
# systemctl enable chronyd.service (设置为系统自启动)
# systemctl enable chronyd.service (启动NTP)
[计算节点安装NTP]
# yum install chrony (安装软件包)
# vi /etc/chrony.conf
server controller iburst 将原本servcer注释掉,增加这行
# systemctl enable chronyd.service (设置为系统自启动)
# systemctl enable chronyd.service (启动NTP)
[验证NTP]
在控制节点和计算节点分别执行chronyc sources,出现截图如下
[更改centos源]
# vi /etc/resolv.conf
# nameserver 114.114.114.114
# nameserver 8.8.8.8
-备份系统自带的yum源
# cd /etc/yum.repos.d/
# mv CentOS-Base.repo CentOS-Base.repo.bak
-更改成阿里云yum源
# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# yum clean all
# yum makecache
# yum -y update //更新系统
[添加epel仓库]
# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# rpm -ivh epel-release-latest-7.noarch.rpm
# yum repolist ##检查是否已添加至源列表
# yum clean all
# yum makecache
# yum repolist enabled 查看系统可用的源
[openstack包]
[openstack packages安装在控制和计算节点]
# yum install centos-release-openstack-ocata
# yum install python-openstackclient 安装 OpenStack客户端:
# yum install openstack-selinux 安装openstack-selinux软件包以便自动管理OpenStack服务的安全策略:
# yum list installed | grep mysql
# yum -y remove (若没有不需要删除)
# wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
# yum install mysql-community-release-el6-5.noarch.rpm
# ls /etc/yum.repos.d
mysql-community-source.repo
mysql-community.repo
yum install mysql-community-server
service mysqld start
mysql -uroot 进入mysql bash模式
SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘123456‘);
# chkconfig --list | grep mysqld
# chkconfig mysqld on
vim /etc/my.cnf
在[mysqld]部分添加:
character-set-server=utf8
在文件末尾新增[client]段,并在[client]段添加:
default-character-set=utf8
service mysqld restart
show variables like "%character%";
# yum install rabbitmq-server 安装 rabbitmq-server 服务器
# service rabbitmq-server start 启动 rabbitmq-server
# chkconfig rabbitmq-server on 设置开机启动服务
# rabbitmq-plugins enable rabbitmq_management 启用插件
# service rabbitmq-server restart 重启服务
# yum -y install memcached
# memcached -h 出现一些帮助命令
# vi /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS="-l 127.0.0.1,::1"
# chkconfig --level 2345 memcached on //开机启动
# service memcached start
# memcached-tool 127.0.0.1:11211 stats
标签:数据库密码 检查 memcache show 时间 安装教程 for linux centos
原文地址:https://www.cnblogs.com/zlxbky/p/9164249.html