摘要:
##安装mysql需要的依赖包yum install ncurses-devel libaio-devel -y##安装编译MySQL需要的软件 由于MySQL5.5及以上的系列产品要采用特殊的编译方式安装,因此,需要先安装常用的编译MySQL的工具cmake软件包,命令为:yum install 阅读全文
摘要:
##主库#开启节点echo -e "log-bin=mysql-bin\nserver-id=1">>/etc/my.cnf#开启数据库/etc/init.d/mysqld restart#添加从库用户grant replication slave on *.* to 'rep'@'172.16.1 阅读全文
摘要:
#NTP服务器安装rpm -qa ntp#yum -y install ntp#配置NTP服务vim /etc/ntp.conf#restrict default kod nomodify notrap nopeer noqueryrestrict default nomodify# nomodif 阅读全文