Changing the IP Address and Port Number of the Kunpeng DevKit
In the following commands, /opt is the tool installation directory. Replace it with the actual directory.
- Use an SSH tool to remotely log in to the Linux CLI.
- Stop the following services:
systemctl stop devkit_nginx systemctl stop java_perf
- Before changing the IP address and port number, you must stop the Kunpeng DevKit. If the Java Profiler is not installed, you do not need to stop the java_perf service.
- If the tool is installed in a container, you can run docker_service.sh to stop the service, such as devkit_nginx. (Replace the example directory /opt with the actual tool installation directory.)
bash /opt/DevKit/tools/docker_service.sh stop devkit_nginx
- Run the following commands to change the IP address and port number:
1 2
cd /opt/DevKit/tools bash change_ip_port.sh
The following information is displayed:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Changing the IP address or port requires service restart. In the multi-node scenario, this will cause the remote node to be unavailable and you need to add the remote node again on the Agent Management page. Are you sure you want to continue? [y/n]y ip address list: sequence_number ip_address device [1] xx.xx.xx.xx eth0 Please enter the sequence number of listed ip as web server ip(default: 1):1 Selected web server ip: xx.xx.xx.xx ip address list: sequence_number ip_address device [1] xx.xx.xx.xx eth0 Please enter the DevKit external ip(mapping IP)(default: 1):1 The DevKit external ip is: xx.xx.xx.xx Please enter install port. (The default install port is 8086): Selected nginx port: 8087 Please enter http server port. (The default http server port is 8002): Selected http server port: 8003 ip address list: sequence_number ip_address device [1] xx.xx.xx.xx eth0 Please enter the sequence number of listed as rpc cluster server ip(default: 1): Selected rpc cluster server ip: xx.xx.xx.xx Please enter rpc cluster server port. (The default rpc cluster server port is 50051): Selected rpc cluster server port: 50051 Web console is now running, go to: https://xx.xx.xx.xx:8087
- Before modifying the IP address and port number, go to the /opt/DevKit/tools directory.
- After the command is executed, available IP addresses will be listed. You can select an IP address.
- If the specified port number is in use, the system automatically increments the port number by 1 until an available port number is found. If no port is available, the installation stops.
- If the OS firewall of the server is enabled, the tool automatically checks whether the configured port is enabled. If the port is enabled, the installation continues. If the port is not enabled, you are prompted to enable the port. If you input y, the tool automatically enables the port. When the tool is uninstalled, the port will be restored to the original status. If you do not enable the port, the tool installation is not affected, but the web access will fail. If you want to access the tool using a web browser, you need to enable the firewall port of the server OS. For details, see Enabling the Firewall Port.
- After the port number is changed, the Kunpeng DevKit automatically starts.
Parent topic: Common Operations