我试图在Ubuntu 20.04上安装GraphDB独立服务器(9.4和9.5(,同时解压缩zip文件。然后,我转到graphdb/bin执行";graphdb";。在这两个版本中,我都收到了下面的消息警告,GraphDB服务器从未在localhost:7200上运行。我似乎对斯普林特的框架有问题。。。?有什么办法绕过这个问题吗?我的java版本是:
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)
提前感谢你的建议。
/graphdb-free-9.5.0/bin$ sudo ./graphdb
./graphdb: line 75: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
[INFO ] 2021-01-11 13:03:43,598 [main | c.o.g.Config] Using 'file:/usr/local/graphdb-free-9.5.0/conf/logback.xml' as logback'hdb
[INFO ] 2021-01-11 13:03:44,388 [main | c.o.g.s.GraphDB] Starting GraphDB in workbench mode.
[INFO ] 2021-01-11 13:03:56,822 [main | c.o.g.Config] GraphDB Home directory: /usr/local/graphdb-free-9.5.0
[INFO ] 2021-01-11 13:03:56,822 [main | c.o.g.Config] GraphDB Config directory: /usr/local/graphdb-free-9.5.0/conf
[INFO ] 2021-01-11 13:03:56,822 [main | c.o.g.Config] GraphDB Data directory: /usr/local/graphdb-free-9.5.0/data
[INFO ] 2021-01-11 13:03:56,822 [main | c.o.g.Config] GraphDB Work directory: /usr/local/graphdb-free-9.5.0/work
[INFO ] 2021-01-11 13:03:56,823 [main | c.o.g.Config] GraphDB Logs directory: /usr/local/graphdb-free-9.5.0/logs
[INFO ] 2021-01-11 13:04:03,652 [main | c.o.g.s.GraphDB] Started GraphDB in workbench mode at port 7200.
[WARN ] 2021-01-11 13:05:24,330 [http-nio-7200-exec-1 | o.s.w.s.PageNotFound] No handler found for GET /
[WARN ] 2021-01-11 13:05:24,332 [http-nio-7200-exec-1 | o.s.w.s.m.s.DefaultHandlerExceptionResolver] Resolved [org.springframework.web.servlet.NoHandlerFoundException: No handler found for GET /] ```
您的区域设置似乎配置错误。你能把";区域设置";命令GraphDB使用LANG=en_US.UTF-8和LC_ALL=en_US.UTF-8,因此如果未能设置它们,则可能无法初始化。你能做的就是检查~/.bashrc或以下内容中的拼写错误:
sudo nano /etc/default/locale
LANGUAGE=en_US.UTF-8
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales