itop docker3.0.0安装

下载docker镜像:

Docker Hubhttps://hub.docker.com/r/vbkunin/itop/tags安装手册

https://github.com/vbkunin/itop-dockerhttps://github.com/vbkunin/itop-docker

本次测试

Image without MySQL

Уou can get base image without MySQL database server (only Apache and PHP) to use with your own one:

##下载itop:3.0.0-base
[root@mongodb ~]# docker pull vbkunin/itop:3.0.0-base
Trying to pull repository docker.io/vbkunin/itop ... 
3.0.0-base: Pulling from docker.io/vbkunin/itop
35807b77a593: Already exists 
ccfecfa17ed6: Already exists 
499764c8dc6b: Already exists 
3ad08b96aaf4: Already exists 
78fbf788f265: Already exists 
5777f1fa1c78: Already exists 
b5deb58b898d: Already exists 
e38f4b7b6f03: Already exists 
cc1e1ef7b847: Already exists 
0f7043265189: Already exists 
118c7d1dd224: Already exists 
328828bcb056: Already exists 
Digest: sha256:fbda87535d458c7fd6e2a11531d4a66a0edb268a8484ee9cb4b17ac29ae83d14
Status: Downloaded newer image for docker.io/vbkunin/itop:3.0.0-base
[root@mongodb ~]# 

##查看下载的docker镜像
[root@mongodb ~]# docker images|grep base
docker.io/vbkunin/itop         3.0.0-base          ff8c67e61350        5 weeks ago         510 MB
[root@mongodb ~]#

##将下载的镜像打包
[root@mongodb ~]# docker save docker.io/vbkunin/itop:3.0.0-base > /root/itop3.0.0-base.tar
[root@mongodb ~]#



##传输到内网服务器,并导入为镜像
[root@slave docker-ce]# docker load < itop3.0.0-base.tar 
4942a1abcbfa: Loading layer [==================================================>]  75.16MB/75.16MB
4a2fefbbad70: Loading layer [==================================================>]  64.51kB/64.51kB
5d0cc7803677: Loading layer [==================================================>]  156.6MB/156.6MB
4505bb61d02b: Loading layer [==================================================>]  150.1MB/150.1MB
ce322fa5f3d0: Loading layer [==================================================>]  75.36MB/75.36MB
2207d92168c1: Loading layer [==================================================>]  6.144kB/6.144kB
bb45a78c3656: Loading layer [==================================================>]  10.24kB/10.24kB
31bb1ceabb8d: Loading layer [==================================================>]  3.072kB/3.072kB
11e1acd26dc6: Loading layer [==================================================>]  3.584kB/3.584kB
7bd140525a25: Loading layer [==================================================>]  2.048kB/2.048kB
a8589e8bb1bf: Loading layer [==================================================>]  19.97kB/19.97kB
ff71d8504d3d: Loading layer [==================================================>]  75.36MB/75.36MB
Loaded image: vbkunin/itop:3.0.0-base
[root@slave docker-ce]#

##在内网服务器查看镜像
[root@slave docker-ce]# docker images
REPOSITORY     TAG          IMAGE ID       CREATED       SIZE
vbkunin/itop   3.0.0-base   ff8c67e61350   5 weeks ago   510MB
[root@slave docker-ce]# 



##使用itop:3.0.0-base启动为新镜像
[root@slave docker-ce]# sudo docker run -d -p 19980:80 --name=my-itop vbkunin/itop:3.0.0-base
647dd0f9297862fc946401118e7f371ce5006ad89db99ec61f4a2fce3e6b9694
[root@slave docker-ce]# 


##查看运行的itop镜像
[root@slave ~]# docker ps|grep itop
647dd0f92978   vbkunin/itop:3.0.0-base   "/run.sh"   7 hours ago   Up 7 hours (healthy)   0.0.0.0:19980->80/tcp, :::19980->80/tcp   my-itop
[root@slave ~]# 

##进入my-top镜像
[root@slave ~]# docker exec -it my-itop /bin/bash
root@647dd0f92978:/# ps -ef|grep apa
root        25    22  0 12:39 ?        00:00:00 runsv apache2
root        27    25  0 12:39 ?        00:00:00 svlogd -tt /var/log/apache2
root        28    25  0 12:39 ?        00:00:00 /bin/sh /usr/sbin/apachectl -DNO_DETACH -k start
root        33    28  0 12:39 ?        00:00:01 /usr/sbin/apache2 -DNO_DETACH -k start
www-data    37    33  0 12:39 ?        00:00:42 /usr/sbin/apache2 -DNO_DETACH -k start
www-data   795    33  0 15:09 ?        00:00:42 /usr/sbin/apache2 -DNO_DETACH -k start
www-data   945    33  0 15:44 ?        00:00:23 /usr/sbin/apache2 -DNO_DETACH -k start
www-data   946    33  0 15:44 ?        00:00:22 /usr/sbin/apache2 -DNO_DETACH -k start
www-data  1000    33  0 16:00 ?        00:00:30 /usr/sbin/apache2 -DNO_DETACH -k start
www-data  1009    33  0 16:02 ?        00:00:23 /usr/sbin/apache2 -DNO_DETACH -k start
www-data  1126    33  0 16:27 ?        00:00:20 /usr/sbin/apache2 -DNO_DETACH -k start
www-data  1741    33  0 18:41 ?        00:00:02 /usr/sbin/apache2 -DNO_DETACH -k start
www-data  1768    33  0 18:50 ?        00:00:01 /usr/sbin/apache2 -DNO_DETACH -k start
www-data  1769    33  0 18:53 ?        00:00:01 /usr/sbin/apache2 -DNO_DETACH -k start
root      1893  1880  0 19:15 pts/1    00:00:00 grep --color=auto apa
root@647dd0f92978:/# 

在mysql上创建数据库,用户并授权

mysql> create database itop;
Query OK, 1 row affected (0.00 sec)

mysql> create user itop@'%' identified by 'Itop#Test#20!#op4$';
Query OK, 0 rows affected (0.13 sec)

mysql> grant all privileges on itop.* to itop@'%';
Query OK, 0 rows affected (0.04 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.02 sec)

mysql> 

初始化之后,登录密码
admin
Admin#Itop#2022
itop 配置文件优化 

##itop参数文件位置:
/var/www/html/conf/production/config-itop.php

‘csv_file_default_charset’ => ‘UTF-8’,
‘default_language’ => ‘ZH CN’,
‘timezone’ => ‘Asia/Shanghai’,

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

七七powerful

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值