forked from docs/doc-exports
Reviewed-by: Rumpler, Mihály <mihaly.rumpler@t-systems.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
4.1 KiB
4.1 KiB
What Should I Do If the Service Port Is Used by the Agent?
Cloud Eye Agent uses HTTP requests to report data. Any port in the range obtained from path /proc/sys/net/ipv4/ip_local_port_range may be occupied. If any service port is used by the Agent, you can modify path /proc/sys/net/ipv4/ip_local_port_range and restart the Agent to solve the problem.
Linux
- Log in an ECS or BMS as user root.
- Open the sysctl.conf file.
vim /etc/sysctl.conf
- (Permanent change) Add new ports to the sysctl.conf file.
net.ipv4.ip_local_port_range=49152 65536
- Apply the changes.
sysctl -p /etc/sysctl.conf
- Restart the Agent.
New version:
service ces-uniagent stop service ces-uniagent start /usr/local/uniagent/extension/install/telescope/telescoped restart
Windows
- Log in to the ECS as an administrator.
- Open Windows PowerShell and run the following command to change the number of ports:
netsh int ipv4 set dynamicportrange tcp start=49152 num=16384
- Go to the Agent installation directory, double-click the shutdown.bat script to stop the Agent, and then run the start.bat script to start the Agent.
Earlier version: The Agent is installed in the directory where the Agent installation package is decompressed, for example, if the package is decompressed in D:\Agent, the installation path would be D:\Agent\telescope_windows_amd64.
New version: The default Agent installation path is C:\Program Files\uniagent\extension\install\telescope.
Parent topic: Server Monitoring
