前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Ubuntu安装Jpom

Ubuntu安装Jpom

作者头像
阿超
发布2022-11-30 16:25:43
3780
发布2022-11-30 16:25:43
举报
文章被收录于专栏:快乐阿超

沉默并非总是智慧的表现,但唠叨却永远是一项愚行——富兰克林

本机环境:

代码语言:javascript
复制
root@VampireAchao:~# lsb_release -d
Description:    Ubuntu 22.04.1 LTS
root@VampireAchao:~# java -version
openjdk version "1.8.0_352"
OpenJDK Runtime Environment (build 1.8.0_352-8u352-ga-1~22.04-b08)
OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode)

安装服务端:

代码语言:javascript
复制
# 提前创建好文件夹 并且切换到对应到文件夹执行命令
mkdir -p /home/jpom/server/
apt install -y wget && wget -O install.sh https://jpom.top/docs/install.sh && bash install.sh Server jdk

输入y确定

报错了

代码语言:javascript
复制
root@VampireAchao:~# mkdir -p /home/jpom/server/
root@VampireAchao:~# apt install -y wget && wget -O install.sh https://jpom.top/docs/install.sh && bash install.sh Server jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
wget is already the newest version (1.21.2-2ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
--2022-11-23 10:19:58--  https://jpom.top/docs/install.sh
Resolving jpom.top (jpom.top)... 106.227.20.214, 106.227.20.215, 106.227.20.216, ...
Connecting to jpom.top (jpom.top)|106.227.20.214|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6176 (6.0K) [text/x-sh]
Saving to: ‘install.sh’

install.sh             100%[============================>]   6.03K  --.-KB/s    in 0s      

2022-11-23 10:19:59 (6.57 GB/s) - ‘install.sh’ saved [6176/6176]

install.sh: line 113: yum: command not found
开始检查 jdk
已经存在java环境/bin/java
默认安装目录 /usr/local/jpom-server, 是否使用此目录作为安装目录? 输入 y 确定, 否则请输入安装目录, 需要使用绝对路径 (注意: agent 和 server 不能装到同一个目录!):y
开始安装:Server  , 安装目录 /usr/local/jpom-server
--2022-11-23 10:20:03--  https://download.jpom.top/release/2.9.15/server-2.9.15-release.zip
Resolving download.jpom.top (download.jpom.top)... 106.227.20.215, 106.227.20.212, 106.227.20.217, ...
Connecting to download.jpom.top (download.jpom.top)|106.227.20.215|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 81243430 (77M) [application/zip]
Saving to: ‘Server.zip’

Server.zip             100%[============================>]  77.48M  12.8MB/s    in 5.8s    

2022-11-23 10:20:09 (13.5 MB/s) - ‘Server.zip’ saved [81243430/81243430]

install.sh: line 175: unzip: command not found
chmod: cannot access 'Server.sh': No such file or directory
bash: Server.sh: No such file or directory

删除目录

代码语言:javascript
复制
rm -r /home/jpom/

安装解压命令

代码语言:javascript
复制
apt install unzip

一直按回车

重新安装

代码语言:javascript
复制
# 提前创建好文件夹 并且切换到对应到文件夹执行命令
mkdir -p /home/jpom/server/
apt install -y wget && wget -O install.sh https://jpom.top/docs/install.sh && bash install.sh Server jdk

执行(我这里忘记cd /home/jpom/server/了,所以默认安装到/usr/local/jpom-server)了

代码语言:javascript
复制
root@VampireAchao:~# mkdir -p /home/jpom/server/
root@VampireAchao:~# apt install -y wget && wget -O install.sh https://jpom.top/docs/install.sh && bash install.sh Server jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
wget is already the newest version (1.21.2-2ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
--2022-11-23 11:01:45--  https://jpom.top/docs/install.sh
Resolving jpom.top (jpom.top)... 106.227.20.212, 106.227.20.215, 106.227.20.214, ...
Connecting to jpom.top (jpom.top)|106.227.20.212|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6176 (6.0K) [text/x-sh]
Saving to: ‘install.sh’

install.sh             100%[============================>]   6.03K  --.-KB/s    in 0s      

2022-11-23 11:01:45 (7.30 GB/s) - ‘install.sh’ saved [6176/6176]

开始检查 jdk
已经存在java环境/bin/java
默认安装目录 /usr/local/jpom-server, 是否使用此目录作为安装目录? 输入 y 确定, 否则请输入安装目录, 需要使用绝对路径 (注意: agent 和 server 不能装到同一个目录!):y
开始安装:Server  , 安装目录 /usr/local/jpom-server
--2022-11-23 11:01:48--  https://download.jpom.top/release/2.9.15/server-2.9.15-release.zip
Resolving download.jpom.top (download.jpom.top)... 106.227.20.212, 106.227.20.211, 106.227.20.216, ...
Connecting to download.jpom.top (download.jpom.top)|106.227.20.212|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 81243430 (77M) [application/zip]
Saving to: ‘Server.zip’

Server.zip             100%[============================>]  77.48M  7.03MB/s    in 7.5s    

2022-11-23 11:01:56 (10.3 MB/s) - ‘Server.zip’ saved [81243430/81243430]

Archive:  Server.zip
   creating: lib/
  inflating: Server.sh               
  inflating: Server.bat              
  inflating: extConfig.yml           
  inflating: LICENSE                 
  inflating: lib/server-2.9.15.jar   
KeepBx-System-JpomServerApplication
/usr/local/jpom-server/
/usr/local/jpom-server/server.log
automatic running:server-2.9.15.jar
Jpom-Server Starting
       _
      | |
      | |_ __   ___  _ __ ___
  _   | | '_ \ / _ \| '_ ` _ \
 | |__| | |_) | (_) | | | | | |
  \____/| .__/ \___/|_| |_| |_|
        | |
        |_|

 ➜ Jpom \ (•◡•) / (v2.9.15)
Jpom[2.9.15] Current data path:/usr/local/jpom-server External configuration file path:file:/usr/local/jpom-server/extConfig.yml
Jpom Successful start preparation. start loading module
start load h2 db
h2 db Successfully loaded, url is 【jdbc:h2:/usr/local/jpom-server/db/Server;CACHE_SIZE=10240;MODE=MYSQL;LOCK_TIMEOUT=10000】
Server Successfully started,Can use happily => http://172.28.110.24:2122 【The current address is for reference only】
Time-consuming to start this time:4秒246毫秒
2022-11-23 11:02:01,085 WARN [pool-1-thread-2] i.j.s.u.TriggerTokenLogServer [TriggerTokenLogServer.java:156]- x:() TriggerToken status recover,user list empty
There is no docker service local java.io.IOException: com.sun.jna.LastErrorException: [2] No such file or directory

访问2122端口设置账号密码

懒得配置两步验证,忽略

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022-11-24,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
容器服务
腾讯云容器服务(Tencent Kubernetes Engine, TKE)基于原生 kubernetes 提供以容器为核心的、高度可扩展的高性能容器管理服务,覆盖 Serverless、边缘计算、分布式云等多种业务部署场景,业内首创单个集群兼容多种计算节点的容器资源管理模式。同时产品作为云原生 Finops 领先布道者,主导开源项目Crane,全面助力客户实现资源优化、成本控制。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档