我在Glassfish 3.1新设置的Debian"Squeeze"服务器上遇到了麻烦.这是一个已设置的测试服务器,Glassfish安装已从工作服务器复制到另一台服务器.
我试过跑:
# ./asadmin start-domain
There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server.
Command start-domain failed.
Run Code Online (Sandbox Code Playgroud)
我也尝试重新启动域,因为我想它可能正在运行:
# ./asadmin restart-domain
Server is not running, will attempt to start it...
There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server.
Command restart-domain failed.
Run Code Online (Sandbox Code Playgroud)
此时我确认Glassfish没有运行所以我检查了端口4848是否被占用:
# netstat -aon | grep 4848
Run Code Online (Sandbox Code Playgroud)
什么也没有回来.
我怀疑是 …
asadmin start-domain domain1
Run Code Online (Sandbox Code Playgroud)
但它显示了这个错误。
There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server.
Run Code Online (Sandbox Code Playgroud)
我搜索并发现它可能是主机名或端口被其他应用程序或服务器使用,实际上它被 TCP 使用。
我对主机名没有问题,所以我通过更改端口尝试了这个解决方案。
asadmin set server.http-service.http-listener.http-listener-1.port=10080
Run Code Online (Sandbox Code Playgroud)
但它显示了这个错误
remote failure: No configuration found for server.http-service.http-listener.http-listener-1
Command set failed.
Run Code Online (Sandbox Code Playgroud)
我不明白为什么。