标签:etcd service server systemctl ETCD SQL OpenStack memcached
数据库
安装软件包
#yum install mariadb mariadb-server python2-PyMySQL -y
修改配置文件
#vim /etc/my.cnf.d/openstack.cnf
[mysqld] bind-address = 192.168.100.147
default-storage-engine = innodb
innodb_file_per_table = on
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8
完成安装启动服务
#systemctl restart mariadb.service
#systemctl enable mariadb.service
初始化数据库
#mysql_secure_installation
Enter current password for root (enter for none): 回车
Set root password? [Y/n] y
New password: 000000
Re-enter new password:
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
消息队列 Rabbitmq
安装软件包
#yum install rabbitmq-server -y
启动消息队列服务并将其配置为在系统引导时启动:
#systemctl enable rabbitmq-server.service
#systemctl restart rabbitmq-server.service
#systemctl status rabbitmq-server.service
添加用户:openstack
#rabbitmqctl add_user openstack 000000
允许用户的配置、写入和读取访问权限:openstack
#rabbitmqctl set_permissions openstack ".*" ".*" ".*"
查看rebbitmq的监听端口:5672
#yum install net‐tools -y
#netstat -antp | grep 5672
缓存服务(Memcached)
安装软件包
#yum install memcached python-memcached -y
修改配置文件
#vim **/etc/sysconfig/memcached**
OPTIONS="-l 127.0.0.1,::1,controller"
设置开机自启
#systemctl restart memcached.service
#systemctl enable memcached.service
#systemctl status memcached.service
Etcd 服务
安装软件包
#yum install etcd -y
修改配置文件
#vim /etc/etcd/etcd.conf
#[Member]
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
ETCD_LISTEN_PEER_URLS="http://192.168.100.147:2380"
ETCD_LISTEN_CLIENT_URLS="http://192.168.100.147:2379"
ETCD_NAME="controller"
#[Clustering]
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://192.168.100.147:2380" ETCD_ADVERTISE_CLIENT_URLS="http://192.168.100.147:2379" ETCD_INITIAL_CLUSTER="controller=http://192.168.100.147:2380"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
ETCD_INITIAL_CLUSTER_STATE="new"
完成安装设置开机自启
#systemctl enable etcd
#systemctl restart etcd
#systemctl status etcd
标签:etcd,service,server,systemctl,ETCD,SQL,OpenStack,memcached 来源: https://www.cnblogs.com/dagu666/p/16561412.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。