react 前端框架如何驱动企业数字化转型与创新发展
949
2022-11-07
Shell Mysql自动搭建wordpress脚本
Mysql自动部署脚本
[root@localhost ~]# cat auto_install_mysql.sh #!/bin/bash#mysql define variableshost_name="192.168.179.99"db_name="wordpress"passwd="123456"user="wordpress"mysql_ver="5.5.60"mysql_soft="mysql-${mysql_ver}.tar.gz"mysql_url="database $db_name charset utf8;"mysql_grant_sql="grant all on ${db_name}.* to '${user}'@'${host_name}' identified by '${passwd}';"mysql_exec="$mysql_dir/bin/mysql"yum install wget gcc c ncurses-devel libaio bison gcc-c++ git cmake ncurses-devel ncurses -ysetenforce 0systemctl stop firewalld cd /usr/srcwget -c $mysql_urltar xf $mysql_softcd mysql-$mysql_ver cmake . -DCMAKE_INSTALL_PREFIX=$mysql_dir/ \-DMYSQL_UNIX_ADDR=/tmp/mysql.sock \-DMYSQL_DATADIR=$mysql_data \-DSYSCONFDIR=$mysql_dir/ \-DMYSQL_USER=mysql \-DMYSQL_TCP_PORT=3306 \-DWITH_XTRADB_STORAGE_ENGINE=1 \-DWITH_INNOBASE_STORAGE_ENGINE=1 \-DWITH_PARTITION_STORAGE_ENGINE=1 \-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \-DWITH_MYISAM_STORAGE_ENGINE=1 \-DWITH_READLINE=1 \-DENABLED_LOCAL_INFILE=1 \-DWITH_EXTRA_CHARSETS=1 \-DDEFAULT_CHARSET=utf8 \-DDEFAULT_COLLATION=utf8_general_ci \-DEXTRA_CHARSETS=all \-DWITH_BIG_TABLES=1 \-DWITH_DEBUG=0 make && make install \cp $mysql_src/support-files/my-large-f $mysql_dir/my-f\cp $mysql_src/support-files/mysql.server /etc/init.d/mysqldchmod o+x /etc/init.d/mysqlduseradd -s /bin/nologin mysqlmkdir -p $mysql_datachown -R mysql:mysql $mysql_data$mysql_dir/scripts/mysql_install_db --user=mysql --datadir=$mysql_data --basedir=$mysql_dir cat >/etc/my-f <
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~