可以在8080以外的端口上运行mmonit吗?

问题描述 投票:0回答:2

我在端口8080上运行了另一个服务phpmyadmin。因此,当我启动mmonit时,它没有启动,并且在错误日志中给出了此错误:

Creating a serversocket at port 8080 -- Address already in use raised in ServerSocket_new at src/net/ServerSocket.c:58

是否可以在其他端口运行mmonit?

monit
2个回答
0
投票
在您的mmonit配置文件中,包括这样的一行。应该已经有一个了,只需更改端口号即可:

<Connector address="xxx.xxx.xxx.xxx" port="8081" processors="10" />


0
投票
是的,您可以在另一个端口上运行mmonit。在位于conf/server.xml的mmonit配置文件中,您可以像这样更改端口(以监听8880)

<Connector address="*" port="8880" processors="10" />

然后重新启动mmonit
© www.soinside.com 2019 - 2024. All rights reserved.