Changing the secure port number for the web management service
By default, the web management service runs
on port 8443. You can specify a different port number when you create
or update a domain.
About this task
Using port 8443 might not work for some deployments because other web servers and applications also use 8443 as their default port. If you have multiple copies of Teracloud® Streams on the same resource, you must use non-default port numbers because separate ports are required for each domain. If you try to start a domain and the port is already being used, the domain fails to start and you receive a message that the port is in use.
The new port number must be a value between 0 and
65535. If the domain.portRange domain property is set,
the new port number must be within the specified port range. If you specify a value of
0, an open port is dynamically chosen when the domain is started. After the
domain starts, you can determine the port number by using the streamtool
geturl command.
Note: If you use the dynamic port allocation
option, you cannot use browser bookmarks for the Streams
Console, since the URL might change each time the web management service restarts. You must also accept the web management service server certificate each time a different port is used.
For
these reasons, consider using an assigned port number in these scenarios.
Procedure
To use a non-default port number:
- Create a domain and specify the sws.port domain
property.Specify the following parameter in the streamtool mkdomain command:
--property sws.port=port-number
- Update the sws.port domain
property value for the domain:
For more information, refer to Firewall configuration guidelines for Teracloud Streams.