1: modify ssh port
The default port of ssh port is 22.
We can only access the server on the external network if the router specifies it.
How to modify it?
Steps:
# vi /etc/ssh/sshd_config // versions are different, so here is for reference only.
Change port 22 to another port, for example:
Port 2222
Then specify the server port on the router.
2. Modify the apache website port
The default port of apache website is 80.
How to modify it?
Steps:
#vi /etc/httpd/conf/httpd.con
Modify listening 80 to other ports, for example:
Listen, 8288
In elastix, you also need to pay attention to the following parameters: https by default.
We need to comment it out with #.
Then specify the development port in the router.