这个盒子跟01部署Nginx那个盒子不一样,那个盒子是Linux盒子,系统就是Ubuntu18.04。
这个盒子是android盒子,斐讯T1,在android上安了LinuxDeploy里面部署了 Ubuntu18.04。
1,下载Tomcat
$ sudo su
root@localhost:/home/senrsl/j2ee# apt-get install wget
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会同时安装下列软件:
libpsl5 publicsuffix
下列【新】软件包将被安装:
libpsl5 publicsuffix wget
升级了 0 个软件包,新安装了 3 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 427 kB 的归档。
解压缩后会消耗 1,279 kB 的额外空间。
您希望继续执行吗? [Y/n] Y
获取:1 http://mirror.tuna.tsinghua.edu.cn/ubuntu-ports bionic/main arm64 libpsl5 arm64 0.19.1-5build1 [40.9 kB]
获取:2 http://mirror.tuna.tsinghua.edu.cn/ubuntu-ports bionic/main arm64 publicsuffix all 20180223.1310-1 [97.6 kB]
获取:3 http://mirror.tuna.tsinghua.edu.cn/ubuntu-ports bionic/main arm64 wget arm64 1.19.4-1ubuntu2 [288 kB]
已下载 427 kB,耗时 1秒 (311 kB/s)
正在选中未选择的软件包 libpsl5:arm64。
(正在读取数据库 ... 系统当前共安装有 44769 个文件和目录。)
正准备解包 .../libpsl5_0.19.1-5build1_arm64.deb ...
正在解包 libpsl5:arm64 (0.19.1-5build1) ...
正在选中未选择的软件包 publicsuffix。
正准备解包 .../publicsuffix_20180223.1310-1_all.deb ...
正在解包 publicsuffix (20180223.1310-1) ...
正在选中未选择的软件包 wget。
正准备解包 .../wget_1.19.4-1ubuntu2_arm64.deb ...
正在解包 wget (1.19.4-1ubuntu2) ...
正在设置 libpsl5:arm64 (0.19.1-5build1) ...
正在处理用于 libc-bin (2.27-3ubuntu1) 的触发器 ...
正在设置 publicsuffix (20180223.1310-1) ...
正在设置 wget (1.19.4-1ubuntu2) ...
正在处理用于 man-db (2.8.3-2) 的触发器 ...
root@localhost:/home/senrsl/j2ee# wget ?
http://?: Invalid host name.
root@localhost:/home/senrsl/j2ee# wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-10/v10.0.2/bin/apache-tomcat-10.0.2.tar.gz
--2021-02-24 15:38:45-- https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-10/v10.0.2/bin/apache-tomcat-10.0.2.tar.gz
Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.8.193, 2402:f000:1:408:8100::1
Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.8.193|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11353990 (11M) [application/octet-stream]
Saving to: 'apache-tomcat-10.0.2.tar.gz'
apache-tomcat-10.0.2.tar.gz 100%[=========================================================================>] 10.83M 348KB/s in 22s
2021-02-24 15:39:06 (515 KB/s) - 'apache-tomcat-10.0.2.tar.gz' saved [11353990/11353990]
root@localhost:/home/senrsl/j2ee# tar -zxvf apache-tomcat-10.0.2.tar.gz
apache-tomcat-10.0.2/conf/
。。。root@localhost:/home/senrsl/j2ee# pwd
/home/senrsl/j2ee
root@localhost:/home/senrsl/j2ee# ls
apache-tomcat-10.0.2 apache-tomcat-10.0.2.tar.gz
root@localhost:/home/senrsl/j2ee# rm apache-tomcat-10.0.2.tar.gz
root@localhost:/home/senrsl/j2ee# java --version
bash: java: command not foundroot@localhost:/home/senrsl/j2ee#
2,再安java
root@localhost:/home/senrsl/j2ee# apt-get install default-jdk
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会同时安装下列软件:。。。
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
done.
root@localhost:/home/senrsl/j2ee# java --version
openjdk 10.0.1 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
root@localhost:/home/senrsl/j2ee#
3,启动Tomcat
root@localhost:/home/senrsl/j2ee# cd apache-tomcat-10.0.2/bin/
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# ./startup.sh
Using CATALINA_BASE: /home/senrsl/j2ee/apache-tomcat-10.0.2
Using CATALINA_HOME: /home/senrsl/j2ee/apache-tomcat-10.0.2
Using CATALINA_TMPDIR: /home/senrsl/j2ee/apache-tomcat-10.0.2/temp
Using JRE_HOME: /usr
Using CLASSPATH: /home/senrsl/j2ee/apache-tomcat-10.0.2/bin/bootstrap.jar:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin#
启动后访问 http://192.168.7.118:8080/ 直接 Not Found,看来新版本不是安装可用啊。。。。
查看日志,报初始化错误
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/logs# cat catalina.2021-02-24.log
24-Feb-2021 15:56:08.382 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本: Apache Tomcat/10.0.2
24-Feb-2021 15:56:08.426 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器构建: Jan 28 2021 18:48:46 UTC
24-Feb-2021 15:56:08.428 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器版本号: 10.0.2.0
24-Feb-2021 15:56:08.431 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 操作系统名称: Linux
24-Feb-2021 15:56:08.433 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本: 3.14.29
24-Feb-2021 15:56:08.435 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 架构: aarch64
24-Feb-2021 15:56:08.437 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量: /usr/lib/jvm/java-11-openjdk-arm64
24-Feb-2021 15:56:08.439 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java虚拟机版本: 10.0.1+10-Ubuntu-3ubuntu1
24-Feb-2021 15:56:08.441 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商: Oracle Corporation
24-Feb-2021 15:56:08.443 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/senrsl/j2ee/apache-tomcat-10.0.2
24-Feb-2021 15:56:08.445 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /home/senrsl/j2ee/apache-tomcat-10.0.2
24-Feb-2021 15:56:08.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: --add-opens=java.base/java.lang=ALL-UNNAMED
24-Feb-2021 15:56:08.567 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: --add-opens=java.base/java.io=ALL-UNNAMED
24-Feb-2021 15:56:08.569 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: --add-opens=java.base/java.util=ALL-UNNAMED
24-Feb-2021 15:56:08.570 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
24-Feb-2021 15:56:08.572 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
24-Feb-2021 15:56:08.573 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.util.logging.config.file=/home/senrsl/j2ee/apache-tomcat-10.0.2/conf/logging.properties
24-Feb-2021 15:56:08.575 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
24-Feb-2021 15:56:08.576 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djdk.tls.ephemeralDHKeySize=2048
24-Feb-2021 15:56:08.578 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
24-Feb-2021 15:56:08.579 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
24-Feb-2021 15:56:08.580 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dignore.endorsed.dirs=
24-Feb-2021 15:56:08.582 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcatalina.base=/home/senrsl/j2ee/apache-tomcat-10.0.2
24-Feb-2021 15:56:08.583 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcatalina.home=/home/senrsl/j2ee/apache-tomcat-10.0.2
24-Feb-2021 15:56:08.585 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.io.tmpdir=/home/senrsl/j2ee/apache-tomcat-10.0.2/temp
24-Feb-2021 15:56:08.597 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent 在java.library.path:[/usr/java/packages/lib:/usr/lib/aarch64-linux-gnu/jni:/lib/aarch64-linux-gnu:/usr/lib/aarch64-linux-gnu:/usr/lib/jni:/lib:/usr/lib]上找不到基于APR的Apache Tomcat本机库,该库允许在生产环境中获得最佳性能
24-Feb-2021 15:56:11.271 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8080"]
24-Feb-2021 15:56:11.397 严重 [main] org.apache.catalina.util.LifecycleBase.handleSubClassException 初始化组件[Connector[HTTP/1.1-8080]]失败。
org.apache.catalina.LifecycleException: 协议处理程序初始化失败
at org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.startup.Catalina.load(Catalina.java:747)
at org.apache.catalina.startup.Catalina.load(Catalina.java:769)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
Caused by: java.net.BindException: Address already in use
at java.base/sun.nio.ch.Net.bind0(Native Method)
at java.base/sun.nio.ch.Net.bind(Net.java:433)
at java.base/sun.nio.ch.Net.bind(Net.java:425)
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)
at org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:220)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:186)
at org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1164)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1177)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:574)
at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)
... 13 more
24-Feb-2021 15:56:11.407 信息 [main] org.apache.catalina.startup.Catalina.load 服务器在[4776]毫秒内初始化
24-Feb-2021 15:56:11.846 信息 [main] org.apache.catalina.core.StandardService.startInternal 正在启动服务[Catalina]
24-Feb-2021 15:56:11.848 信息 [main] org.apache.catalina.core.StandardEngine.startInternal 正在启动 Servlet 引擎:[Apache Tomcat/10.0.2]
24-Feb-2021 15:56:11.906 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [/home/senrsl/j2ee/apache-tomcat-10.0.2/webapps/host-manager]
24-Feb-2021 15:56:14.033 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[/home/senrsl/j2ee/apache-tomcat-10.0.2/webapps/host-manager]的部署已在[2,109]毫秒内完成
24-Feb-2021 15:56:14.036 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [/home/senrsl/j2ee/apache-tomcat-10.0.2/webapps/ROOT]
24-Feb-2021 15:56:14.183 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[/home/senrsl/j2ee/apache-tomcat-10.0.2/webapps/ROOT]的部署已在[147]毫秒内完成
24-Feb-2021 15:56:14.185 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [/home/senrsl/j2ee/apache-tomcat-10.0.2/webapps/examples]
24-Feb-2021 15:56:16.293 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[/home/senrsl/j2ee/apache-tomcat-10.0.2/webapps/examples]的部署已在[2,108]毫秒内完成
24-Feb-2021 15:56:16.295 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [/home/senrsl/j2ee/apache-tomcat-10.0.2/webapps/docs]
24-Feb-2021 15:56:16.414 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[/home/senrsl/j2ee/apache-tomcat-10.0.2/webapps/docs]的部署已在[117]毫秒内完成
24-Feb-2021 15:56:16.416 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [/home/senrsl/j2ee/apache-tomcat-10.0.2/webapps/manager]
24-Feb-2021 15:56:16.594 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[/home/senrsl/j2ee/apache-tomcat-10.0.2/webapps/manager]的部署已在[178]毫秒内完成
24-Feb-2021 15:56:16.620 信息 [main] org.apache.catalina.startup.Catalina.start [5211]毫秒后服务器启动
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/logs#
端口被占用?
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# lsof -i:8080
bash: lsof: command not found
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# netstat -a
bash: netstat: command not found
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin#
我怕是安了个假的Ubuntu吧。。。。咋啥命令都没有。。。。
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# apt-get install net-tools
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列【新】软件包将被安装:
net-tools
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 171 kB 的归档。
解压缩后会消耗 721 kB 的额外空间。
获取:1 http://mirror.tuna.tsinghua.edu.cn/ubuntu-ports bionic/main arm64 net-tools arm64 1.60+git20161116.90da8a0-1ubuntu1 [171 kB]
已下载 171 kB,耗时 0秒 (2,510 kB/s)
正在选中未选择的软件包 net-tools。
(正在读取数据库 ... 系统当前共安装有 47102 个文件和目录。)
正准备解包 .../net-tools_1.60+git20161116.90da8a0-1ubuntu1_arm64.deb ...
正在解包 net-tools (1.60+git20161116.90da8a0-1ubuntu1) ...
正在处理用于 man-db (2.8.3-2) 的触发器 ...
正在设置 net-tools (1.60+git20161116.90da8a0-1ubuntu1) ...
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:49152 0.0.0.0:* LISTEN
。。。
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# netstat -an | grep 8080
tcp6 0 0 :::8080 :::* LISTEN
tcp6 0 0 192.168.7.118:37347 119.23.218.72:8080 ESTABLISHED
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin#
查了下 119.23.218.72 是深圳阿里云。。。。
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# netstat -lnp | grep 8080
tcp6 0 0 :::8080 :::* LISTEN 4704/com.phicomm.bo
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin#
斐讯都跑了好多年了,程序还在勤恳的工作。。。。
这个进程很强。。。。
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# netstat -lnp | grep 8080
tcp6 0 0 :::8080 :::* LISTEN 4704/com.phicomm.bo
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# netstat -lnp | grep 8080
tcp6 0 0 :::8080 :::* LISTEN 4704/com.phicomm.bo
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# kill 4704
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# netstat -lnp | grep 8080
tcp6 0 0 :::8080 :::* LISTEN 11903/com.phicomm.b
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# netstat -lnp | grep 8080
tcp6 0 0 :::8080 :::* LISTEN 11903/com.phicomm.b
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# kill 11903
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# netstat -lnp | grep 8080
tcp6 0 0 :::8080 :::* LISTEN 11930/com.phicomm.b
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# kill 11930
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# netstat -lnp | grep 8080
tcp6 0 0 :::8080 :::* LISTEN 11952/com.phicomm.b
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin#
搜了一下,能找到这个开头的包是遥控器:com.phicomm.box.tvremoter
SENRSL:~ senrsl$ adb shell pm list packages
package:io.binstream.github.demo
package:com.android.tv.settings
package:com.android.providers.media
package:com.android.launcher
package:com.sohu.inputmethod.sogou.tv
package:com.android.externalstorage
package:com.android.htmlviewer
package:com.jydata.rtmp
package:com.phicomm.box.tvremoter
package:com.dianshijia.newlive
package:com.android.providers.downloads
package:com.droidlogic
package:com.dangbei.tvlauncher
package:com.android.defcontainer
package:com.android.certinstaller
package:android
package:com.android.provision
package:com.android.statementservice
package:com.android.providers.settings
package:com.hpplay.happyplay.aw
package:com.phi.factorytest
package:com.android.dreams.basic
package:com.android.webview
package:com.android.inputdevices
package:com.droidlogic.BluetoothRemote
package:com.mx.browser
package:com.droidlogic.SubTitleService
package:android.ext.shared
package:com.systentent.minsdk
package:com.droidlogic.dig
package:com.android.keychain
package:com.kehdev.kehdevmanger
package:android.ext.services
package:com.android.packageinstaller
package:com.android.proxyhandler
package:com.android.managedprovisioning
package:ru.meefik.linuxdeploy
package:com.android.dreams.phototable
package:com.android.settings
package:com.phicomm.phitvmanager
package:com.xiaobaifile.xbplayer
package:com.android.vpndialogs
package:com.android.shell
package:com.android.providers.userdictionary
package:com.dangbeimarket
package:com.android.location.fused
package:com.android.systemui
package:com.noshufou.android.su
package:com.peasun.aispeech
package:com.shafa.market
package:com.android.bluetooth
package:com.android.captiveportallogin
package:com.phicomm.filemanager
SENRSL:~ senrsl$
太难了。。。。
端口 | 应用 | 作用 | 备注 |
---|---|---|---|
49152 | com.hpplay.happyplay.aw | 乐播投屏 | |
8002 | /data/opt/xunlei/lib/vod_httpserver | ||
9091 | /opt/bin/transmission-daemon | ||
9988 | /data/opt/xunlei/lib/ETMDaemon | ||
9000 | /data/opt/xunlei/lib/EmbedThunderManager | ||
2121 | /opt/sbin/vsftpd | ||
52266 | com.hpplay.happyplay.aw | 乐播投屏 | |
6800 | /data/opt/bin/aria2c | ||
80 | /opt/sbin/lighttpd | 下载系统 | |
10100 | com.droidlogic.SubTitleService | ||
51413 | /opt/bin/transmission-daemon | ||
4662 | /data/opt/xunlei/lib/EmbedThunderManager | ||
1080 | /data/opt/xunlei/lib/EmbedThunderManager | ||
7100 | com.hpplay.happyplay.aw | 乐播投屏 | |
52288 | com.hpplay.happyplay.aw | 乐播投屏 | |
8899 | com.shafa.market.remote | ||
139 | /opt/sbin/smbd | ||
2223 | /system/xbin/dropbear | ||
8080 | com.phicomm.box.tvremoter | 遥控器 | |
10000 | com.shafa.market.remote | ||
9200 | com.phi.factorytest | ||
6800 | /data/opt/bin/aria2c | ||
5555 | /sbin/adbd | adb调试? | |
51413 | /opt/bin/transmission-daemon | ||
22 | /opt/sbin/dropbear | ||
445 | /opt/sbin/smbd | ||
7871 | com.phicomm.box.tvremoter |
停用不了,试了半天,终于删成功了。。。。
先备份,万一哪天再导回去。。。。
SENRSL:~ senrsl$ adb shell pm path com.phicomm.box.tvremoter
package:/system/priv-app/PhiTvRemoteServer/PhiTvRemoteServer.apkSENRSL:Downloads senrsl$ adb pull /system/priv-app/PhiTvRemoteServer/PhiTvRemoteServer.apk
/system/priv-app/PhiTvRemoteServer/PhiTvRemoteServer.apk: 1 file pulled, 0 skipped. 1.6 MB/s (109939 bytes in 0.067s)
q201:/system/priv-app/PhiTvRemoteServer # mount -o rw,remount /system
q201:/system/priv-app/PhiTvRemoteServer # chmod 777 PhiTvRemoteServer.apk
q201:/system/priv-app/PhiTvRemoteServer # rm PhiTvRemoteServer.apk
q201:/system/priv-app/PhiTvRemoteServer # ls
q201:/system/priv-app/PhiTvRemoteServer #
终于不再自动启动了。。。。
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# netstat -lnp | grep 8080
tcp6 0 0 :::8080 :::* LISTEN 12540/com.phicomm.b
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# kill 12540
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin# netstat -lnp | grep 8080
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2/bin#
终于,看到了这只猫。。。。
此处配猫
4,修改主页
先从本机跑通再去服务器跑事半功倍。。。。
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2# ls webapps/clock
clock.html index.js package.json style.css WEB-INF
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2# cat webapps/clock/WEB-INF/web.xml
<?xml version="1.0" encoding="UTF-8"?>
。。。
<web-app xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd"
version="5.0"
metadata-complete="true">
<display-name>Welcome to Tomcat</display-name>
<description>
Welcome to Tomcat
</description>
<welcome-file-list>
<welcome-file>clock.html</welcome-file>
</welcome-file-list>
</web-app>
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2# cat conf/server.xml
。。。
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="clock" debug="true" reloadable="false"></Context>
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
</Engine>
</Service>
</Server>
root@localhost:/home/senrsl/j2ee/apache-tomcat-10.0.2#
果然比MacBookPro 性能差一些。。。。
解析速度慢好几秒。。。。
senRsl
2021年02月24日15:49:27
没有评论 :
发表评论