You've already forked www.colben.cn
update
This commit is contained in:
@@ -15,7 +15,7 @@ cpu | mem | hostname | public ip | cluster ip | CentOS | MariaDB
|
||||
|
||||
|
||||
# 安装数据库
|
||||
### 离线安装
|
||||
## 离线安装
|
||||
- [下载 rpm](http://yum.mariadb.org/10.1/centos7-amd64/rpms/)
|
||||
- MariaDB-10.1.33-centos7-x86_64-client.rpm
|
||||
- MariaDB-10.1.33-centos7-x86_64-common.rpm
|
||||
@@ -33,7 +33,7 @@ cpu | mem | hostname | public ip | cluster ip | CentOS | MariaDB
|
||||
mysql_install_db --user=mysql
|
||||
```
|
||||
|
||||
### yum 安装
|
||||
## yum 安装
|
||||
- 创建 MariaDB-10.1 的 yum 源文件(就近选择一个)
|
||||
```bash
|
||||
#官方
|
||||
@@ -61,6 +61,7 @@ cpu | mem | hostname | public ip | cluster ip | CentOS | MariaDB
|
||||
gpgcheck=1
|
||||
END
|
||||
```
|
||||
|
||||
- 安装 MariaDB
|
||||
```bash
|
||||
yum install MariaDB-client MariaDB-server
|
||||
@@ -68,9 +69,9 @@ cpu | mem | hostname | public ip | cluster ip | CentOS | MariaDB
|
||||
```
|
||||
|
||||
# 启动server
|
||||
```bash
|
||||
systemctl start mariadb
|
||||
```
|
||||
```bash
|
||||
systemctl start mariadb
|
||||
```
|
||||
|
||||
# 安全设置
|
||||
- 设置root账户密码(推荐)
|
||||
|
Reference in New Issue
Block a user