How can I change the port number in nacos?

To modify the port number of Nacos, you can follow these steps:

  1. Open the installation directory of Nacos and navigate to the conf folder.
  2. Find and open the nacos-server.properties file.
  3. Look for the server.port property in the file, which has a default value of 8848, indicating the default port number for Nacos.
  4. Change the value of server.port to the new port number you desire. For example, change it to 8888.
  5. Save the document and then close it.
  6. Restart the Nacos service to apply the modified port number.

After changing the port number, make sure that the new port number is not being used by any other application, or else Nacos will not be able to start properly.

bannerAds