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
- Turn on the firewall and add port rules
Control Panel - System and Security - Windows Defender Firewall - Advanced Settings
Create a new inbound rule, select the port, click Next,
at the specific port, add the port number to be released, click Next,
click Next,
click Next,
Enter a name, a description (optional), and click Finish.
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
- Tianyi cloud server
Control Center - Elastic Cloud Host - Security Group - Sys WebServer - Inbound Rules - Add rules, and then add them according to your needs
4. Configure the FTP function of the Windows server and add the port number
- Enter the windows server.
- Find and click Add Roles and Features in Service Manager to enter the Add Roles and Features wizard.
- Select Role-based or Feature-based installation and click Next.
- 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.
- Right click on IIS to open IIS Manager, select Add FTP Site
- After filling in the site name and FTP folder path, click Next.
- Configure according to the figure below and click Next.
- 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.