1

##无yum源安装spug监控

 1 year ago
source link: https://blog.51cto.com/u_15397018/5446038
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

##无yum源安装spug监控

原创

韦建国 2022-07-06 08:44:07 博主文章分类:监控 ©著作权

文章标签 mysql 初始化 文章分类 Linux 系统/运维 yyds干货盘点 阅读数168

1. 找到安装包

##无yum源安装spug监控_初始化

2、安装docker

[root@localhost ~]# tar zxvf docker-ce-18.09.tar.gz
[root@localhost ~]# cd docker/
##无yum源安装spug监控_初始化_02

3、安装docker包

[root@localhost docker]# rpm -Uvh --force --nodeps *.rpm

4、启动docker

[root@localhost docker]# systemctl start docker

5、查看docker

[root@localhost docker]# docker ps
[root@localhost docker]# docker images

6、将准备好的spug包导入容器docker

[root@localhost ~]# docker load<spug.rar
##无yum源安装spug监控_mysql_03

7、运行容器

[root@localhost ~]# docker run -d --restart=always --name=spug -p 880:80 -v /spug:/data b79726b9911b9880ada07140710e60e69dba7b57a32c5c155b0db78647916f03

##无yum源安装spug监控_mysql_04

8、进入spug容器

[root@localhost ~]# docker exec -it spug /bin/bash

9、登录spug的数据库

[root@b55b17d18993 /]# mysql -umysql -p
##无yum源安装spug监控_初始化_05

10、初始化

[root@localhost ~]# docker exec spug init_spug admin spug.dev
##无yum源安装spug监控_初始化_06

11、重启容器

[root@localhost ~]# docker restart spug

12、登录

在浏览器中输入 ​ ​http://localhost:80​​ 访问

用户名: admin 

passwd: spug.dev


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK