Tomcat server remote connection

Table of contents

IDEA configures remote Tomcat server

firewall settings

windows

Linux


IDEA configures remote Tomcat server

1. Select Edit configurations to add a remote Tomcat server;

2. Add a remote Tomcat server, select Remote;

3. Modify the remote connection settings, add the IP of the remote host, the default port is 8080, modify the tomcat server, and select sftp;

4. Add SFTP, enter the IP of the remote server, login user name and password, and click Test;

5. Select the newly created sftp, the path of the project deployment remote host, and select the project to be deployed;

firewall settings

windows

Command: Used to permanently open TCP port 8080 in the firewall configuration. Here, port 8080 is the port that the MySQL database server listens to by default.

firewall-cmd --permanent --add-port=8080/tcp

Visualization: Open the firewall, advanced firewall settings, create a new rule for inbound rules, select the TCP port and fill in the port number 8080, select Allow all connections, and complete;

Linux

CentOS, Red Hat, the firewall management tool is firewalld, the following is the command for TCP port 8080:

sudo firewall-cmd --permanent --add-port=8080/tcp
sudo firewall-cmd --reload

Ubuntu, the firewall management tool is ufw, the following is the command for TCP port 8080:

sudo ufw allow 8080/tcp
sudo ufw reload

Guess you like

Origin blog.csdn.net/m0_67906358/article/details/132148991
Recommended