我已经使用 ./wso2server.sh 启动了 WSO2 ESB 服务器,但是没有脚本可以停止服务器?
谁能告诉命令停止服务器?
谢谢苏雷什
如果您已经使用 ./wso2server.sh 启动了服务器,那么您可以通过在控制台上同时按 Ctrl 和 c 键来停止服务器,它只会杀死服务器。
如果您已经开始使用 ./wso2server.sh --start 或 ./deamon.sh start,那么您可以使用命令 ./wso2server.sh --stop 或 ./deamon.sh stop 来终止服务器。
./wso2server.sh --stop
或者./daemon.sh stop
Generally, pressing CTRL + C in the terminal you started the server would do.
If it's not possible for you, then do the following.
Enter the command ps ax | grep wso2esb
This will list the set of processes started that has the text wso2esb. Unless you opened several esb instances, there will be one process that would like the following [1]. There, the first number refers to the process id.
So, enter following command to gracefully shutdown the esb.
kill <process-id>
You may force the shutdown by sending signal kill
(-9
) like follows if you need to.
kill -9 <process-id>
As you may have noticed, the kill command is a native program that comes with most linux distros, not a wso2 provided one.
要停止服务器,
这是一个旧线程......但是自从我带着同样的问题来到这里后,我不妨将我找到的答案发布给未来的用户。
关闭 wso2 服务器的另一种方法是通过在线管理控制台。服务器运行后,只需在浏览器中导航到
https://localhost:9443/carbon
使用默认用户名和密码“admin”登录服务器的管理页面。然后滚动到页面底部并选择“关机/重启”并从菜单中选择“正常关机”。