#昊鼎王五:如何安裝藍鲸智雲v3.1.7社群版本之MYSQL?
安裝“藍鲸智雲”社群版-記錄-安裝藍鲸智雲的MYSQL
#Q.前提知識:
實驗機器:centos7
bkce_src-3.1.7.tgz社群版本
在《昊鼎王五:運維自動化閉環,從騰訊走出來的實踐》
https://blog.csdn.net/haoding205/article/details/82687802
提到了藍鲸智雲系統,今天就開始講如何安裝藍鲸智雲v3.1.7社群版本之MYSQL。
安裝藍鲸智雲的MYSQL
#1.安裝
[[email protected] install]# ./bkcec install mysql
install mysql on host: 192.168.1.102
check dependences for mysql
Usage: usermod [options] LOGIN
Options:
-c, --comment COMMENT new value of the GECOS field
-d, --home HOME_DIR new home directory for the user account
-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-f, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-g, --gid GROUP force use GROUP as new primary group
-G, --groups GROUPS new list of supplementary GROUPS
-a, --append append the user to the supplemental GROUPS
mentioned by the -G option without removing
him/her from other groups
-h, --help display this help message and exit
-l, --login NEW_LOGIN new value of the login name
-L, --lock lock the user account
-m, --move-home move contents of the home directory to the
new location (use only with -d)
-o, --non-unique allow using duplicate (non-unique) UID
-p, --password PASSWORD use encrypted password for the new password
-R, --root CHROOT_DIR directory to chroot into
-s, --shell SHELL new login shell for the user account
-u, --uid UID new UID for the user account
-U, --unlock unlock the user account
-Z, --selinux-user SEUSER new SELinux user mapping for the user account
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.ustc.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.163.com
No package pidof available.
No package pkill available.
Package rsync-3.0.9-18.el7.x86_64 already installed and latest version
Package gawk-4.0.2-4.el7_3.1.x86_64 already installed and latest version
Package curl-7.29.0-42.el7_4.1.x86_64 already installed and latest version
Package lsof-4.87-4.el7.x86_64 already installed and latest version
Package 2:tar-1.26-32.el7.x86_64 already installed and latest version
Package sed-4.2.2-5.el7.x86_64 already installed and latest version
Package iproute-3.10.0-87.el7.x86_64 already installed and latest version
Package uuid-1.6.2-26.el7.x86_64 already installed and latest version
Package psmisc-22.20-15.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.ustc.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.163.com
Package python2-pip-8.1.2-5.el7.noarch already installed and latest version
Package 1:openssl-devel-1.0.2k-8.el7.x86_64 already installed and latest version
Package readline-devel-6.2-10.el7.x86_64 already installed and latest version
Package libcurl-devel-7.29.0-42.el7_4.1.x86_64 already installed and latest version
Package libxml2-devel-2.9.1-6.el7_2.3.x86_64 already installed and latest version
Package glibc-devel-2.17-196.el7_4.2.x86_64 already installed and latest version
Package zlib-devel-1.2.7-17.el7.x86_64 already installed and latest version
Package iproute-3.10.0-87.el7.x86_64 already installed and latest version
Package sysvinit-tools-2.88-14.dsf.el7.x86_64 already installed and latest version
Package procps-ng-3.3.10-16.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.ustc.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.163.com
Package libaio-devel-0.3.109-13.el7.x86_64 already installed and latest version
Nothing to do
[192.168.1.102]20180410-184031 65 All required software are installed.
[192.168.1.102]20180410-184031 334 create directories ...
[192.168.1.102]20180410-184031 702 install mysql ...
[192.168.1.102]20180410-184031 145 >> rsync -a --delete /data/src/service/mysql /data/bkce/service/
[192.168.1.102]20180410-184031 420 expr: find /data/src/service/support-files/templates -name "*#my.cnf*"
[192.168.1.102]20180410-184031 424 templates file: #etc#my.cnf.tpl
[192.168.1.102]20180410-184031 437 target file: /data/bkce//etc/my.cnf
[192.168.1.102]20180410-184031 455 render configuration file:/data/bkce//etc/my.cnf
[192.168.1.102]20180410-184031 729 execute mysql_install_db
Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/data/bkce/service/mysql/bin/mysqladmin -u root password 'new-password'
/data/bkce/service/mysql/bin/mysqladmin -u root -h 127.0.0.1 password 'new-password'
Alternatively you can run:
/data/bkce/service/mysql/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /data/bkce/service/mysql ; /data/bkce/service/mysql/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /data/bkce/service/mysql/mysql-test ; perl mysql-test-run.pl
Please report any problems with the /data/bkce/service/mysql/scripts/mysqlbug script!
[192.168.1.103]20180410-184033 301 install mysql done
[[email protected] install]#
#2.驗證檢視
請見下一篇《昊鼎王五:如何安裝藍鲸智雲v3.1.7社群版本之安裝基礎子產品?》
https://blog.csdn.net/haoding205/article/details/82697765
好了,聰明如你,知道了安裝藍鲸智雲v3.1.7社群版本之MYSQL,是不是很歡喜 _
還有其他問題的可以在評論區留言或者掃碼加部落客擷取資源或者提問。