更新 运维监控系统部署:Nightingale
@@ -5,11 +5,16 @@
|
|||||||
apt -y install mariadb*
|
apt -y install mariadb*
|
||||||
systemctl enable mariadb
|
systemctl enable mariadb
|
||||||
systemctl restart mariadb
|
systemctl restart mariadb
|
||||||
|
#设置mysql密码
|
||||||
mysql -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('1234');"
|
mysql -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('1234');"
|
||||||
```
|
```
|
||||||
- 部署缓存数据库Redis
|
- 部署缓存数据库Redis
|
||||||
```
|
```
|
||||||
apt install -y redis
|
apt install -y redis
|
||||||
|
#修改redis密码
|
||||||
|
vi /etc/redis/redis.conf
|
||||||
|
添加requirepass 1234(密码字段)
|
||||||
|
|
||||||
systemctl enable redis
|
systemctl enable redis
|
||||||
systemctl restart redis
|
systemctl restart redis
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user