Current location - Quotes Website - Team slogan - How to modify ssh port and apache port
How to modify ssh port and apache port
The following operations are based on the settings under Linux.

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.