搭建命令: 1 yum -y install mariadb mariadb-server 2 systemctl stop firewalld.service 3 systemctl disable firewalld.service 4 systemctl start mariadb 5 systemctl enable mariadb 6 mysql -u root 7 show databases; 8 use mysql; 9 update mysql.user set password=PASSWORD('123456') where user='root';(添加账号root的密码,将123456改成你想要的密码即可) 10 update user set host = '%' where user = 'root'; (更新账号root的权限!) 11 FLUSH PRIVILEGES; (刷新权限) 12 exit (退出数据库) 12.1 etc/my.cnf 编辑 [mysqld] datadir=/var/lib/mysql max_allowed_packet = 102400M socket=/var/lib/mysql/mysql.sock 在symbolic-links=0代码下一行插入max_connections=16384 保存 13. yum install xulrunner.i686 (安装环境) 14 重启MySQL systemctl restart mariadb 插入ETC文件权限777 /数据库 编码936(操作略) 重启reboot 跑线命令: cd /home/1.6/1 ./1 cd /home/1.6/aaa ./runaaa cd /home/1.6/dba ./rundba cd /home/1.6/ccs ./runccs cd /home/1.6/csa ./runcsa cd /home/1.6/gs/ ./rungs1 cd /home/1.6/gs/ ./rungs2 cd /home/1.6/gs/ ./rungs3 cd /home/1.6/gs/ ./rungs4