23-03-10

First Post:

Last Update:

2023-03-10~2023-03-11 | 搭链一些问题留档

问题

启动WeBase-Front必须在本目录下

尝试在上一层目录下执行脚本,出现:

1
2
3
4
5
[root@localhost fisco]# bash webase-front/start.sh
cat: /root/fisco/conf/application.yml: 没有那个文件或目录
/root/fisco/conf/application.yml server port has not been configured
[root@localhost fisco]# cd conf
bash: cd: conf: 没有那个文件或目录

脚本会默认在当前目录找application.yml

打#变成

今天重新安装Linux之后发现输入#号变成了£符号

英语输入法设置成了英国区,改成美国就回来了

或者参考->Why is my @ symbol not working,执行sudo vi /etc/default/keyboard之后,找到XKBLAYOUT=“gb”修改成us

webase-front启动失败

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[root@localhost webase-front]# bash start.sh 
===============================================================================================
Server com.webank.webase.front.Application Port 5002 ................................[Failed]. Please check message through the log file (default path:./log/).
===============================================================================================
[root@localhost webase-front]# cat ./log/
cat: ./log/: 是一个目录
[root@localhost webase-front]# cd ./log/
[root@localhost log]# ls
front.out
[root@localhost log]# cat front.out
nohup: 无法运行命令"/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64/bin/java": 没有那个文件或目录
[root@localhost log]# cd usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64/bin/
bash: cd: usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64/bin/: 没有那个文件或目录

找到脚本start.sh,发现只需要Java-Home

把JRE_HOME删除,然后JAVA_HOME后面添加/jre

还是没出现?CTRL + Shift + R,刷新浏览器缓存

fisco-bcos未找到命令

fisco-bcos->./fisco-bcos

命令

查找真实路径

which—— which java是无法定位到Java的安装路径的,只能定位到执行路径

ls -lrt——ls -lrt解析:即将文件以建立时间先后顺序的倒叙排列显示,从上面的结果可以看出,/usr/bin/java是执行路径,那么继续执行后面的文件路径,即可找到JDK的安装路径为/usr/lib/jvm/java-1.8.0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[root@localhost /]# which java
/usr/bin/java
[root@localhost /]# ls -lrt /usr/bin/java
lrwxrwxrwx. 1 root root 22 3月 10 2023 /usr/bin/java -> /etc/alternatives/java
[root@localhost /]# ls -lrt /etc/alternatives/java
lrwxrwxrwx. 1 root root 71 3月 10 2023 /etc/alternatives/java -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64/jre/bin/java
[root@localhost /]# cd /usr/lib/jvm
[root@localhost jvm]# ls
java-1.7.0-openjdk-1.7.0.261-2.6.22.2.el7_8.x86_64
java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64
jre
jre-1.7.0
jre-1.7.0-openjdk
jre-1.7.0-openjdk-1.7.0.261-2.6.22.2.el7_8.x86_64
jre-1.8.0
jre-1.8.0-openjdk
jre-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64
jre-openjdk