windows server deployment project

Remember a windows server migration project

1. Install jdk and configure environment variables

https://blog.csdn.net/bestsongs/article/details/104905060

2. Install mysql and configure environment variables

https://www.cnblogs.com/zhang1f/p/12985780.html

Here is an error report I encountered during installation: SQLyog reports an error when connecting to mysql8.0: error number 2058

3. Configure the firewall policy and release the port number on the server platform

a. You can turn off or turn on the firewall, according to your specific needs.

  • turn off firewall

Control Panel - System and Security - Windows Defender Firewall - Enable or disable the firewall
insert image description here

  • Turn on the firewall and add port rules

Control Panel - System and Security - Windows Defender Firewall - Advanced Settings
insert image description here
Create a new inbound rule, select the port, click Next,
insert image description here
at the specific port, add the port number to be released, click Next,
insert image description here
click Next,
insert image description here
click Next,
insert image description here
Enter a name, a description (optional), and click Finish.
insert image description here
b. Release the required port on the platform, here is an example based on two used platforms

  • Alibaba Cloud Server

Console - cloud server - security group - configuration rules - add manually, and then add according to your needs
insert image description here

  • Tianyi cloud server

Control Center - Elastic Cloud Host - Security Group - Sys WebServer - Inbound Rules - Add rules, and then add them according to your needs
insert image description here

4. Configure the FTP function of the Windows server and add the port number

  1. Enter the windows server.
  2. Find and click Add Roles and Features in Service Manager to enter the Add Roles and Features wizard.
  3. Select Role-based or Feature-based installation and click Next.
  4. Find the FTP server in the server role, select the FTP service and FTP extension, click Next to install, and the rest of the simple operations will not be described.
  5. Right click on IIS to open IIS Manager, select Add FTP Site
    insert image description here
  6. After filling in the site name and FTP folder path, click Next.
    insert image description here
  7. Configure according to the figure below and click Next.
    insert image description here
  8. After the addition is complete, after configuring the port number according to the third step, you can successfully connect to the windows server by using xftp.

If the remote folder cannot be displayed after xftp connection, click Properties->Options->Remove the option of using passive mode

5. Configure SSH and add port number

Install openssh on windows server 2012 R2

6. Package the project and run it (IP+port access)

Open the small black window at the location of the jar package, you can directly run java -jar xxx.jar, or create a .bat script to make the project run in the background, the content is as follows

@echo off
start javaw -jar xxxxxxxx-SNAPSHOT.jar
exit

7. Configure domain name

https://blog.csdn.net/Cike___/article/details/122060813


The law of good things: Everything will be a good thing in the end, if it is not a good thing, it means that it is not the end yet.

Guess you like

Origin blog.csdn.net/Cike___/article/details/121976240