Rate This Document
Findability
Accuracy
Completeness
Readability

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.

  1. Use an SSH tool to remotely log in to the Linux OS CLI as the DevKit installation user.
  2. Stop the Kunpeng DevKit.
    • root user
      systemctl stop devkit_nginx
      systemctl stop java_perf
    • Common users
      bash /home/test01/DevKit/tools/service_management.sh stop devkit_nginx
      bash /home/test01/DevKit/tools/service_management.sh stop java_perf
    • /home/test01: Replace the example installation directory with the actual one.
    • 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 service_management.sh to stop the service based on the installation method for a common user.
  3. 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
      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          enp1s0
      [2]                  xx.xx.xx.xx          docker0
    Please enter the sequence number of the listed IP address as the web server IP (default: 1):
      Selected IP address of the web server: 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: 8002
    
    Please enter django server port. (The default django server port is 7996):
      Selected django server port: 7996
    
    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
    
    • After the command is executed, available IP addresses will be listed. You can select an IP address.
    • If the specified port is in use, the system automatically increments the port number by 1 until an available port is found. If no port is available, the execution 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 execution continues. If the port is not enabled, the tool automatically enables it. When the tool is uninstalled, the port will be restored to the original status.
    • After the port number is changed, the Kunpeng DevKit automatically starts.