Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Technical assessment in April

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The remote connection is turned on by default.

1. Modify the Windows remote port to 55555 with the registry, and the computer cannot be restarted.

First confirm whether the firewall is turned off, or make a policy first (question 2)

Open "start-run", type "regedit", and open the registry

Select the path: HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Control\ Terminal Server\ Wds\ rdpwd\ Tds\ tcp, find the PortNamber value in the right window, right-click and select modify, click decimal first, and then modify to port 55555.

Select the path: HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Control\ Terminal Server\ WinStations\ RDP-Tcp, find the PortNamber value in the right window, right-click and select modify, click decimal first, and then modify to port 55555.

Open start-Administrative tools-Services, locate Remote Desktop Services, and then right-click and select restart.

two。 Only the IP of 192.168.8.8 can connect to port 55555 of this computer, and all others are rejected.

Open start-Administrative tools-Local Security Policy in IP Security Policy, right-click on the local computer, select create IP Security Policy, and then click next.

The name reads "port 55555" and the description can be written "only 192.168.8.8 this IP can connect to port 55555 of this machine, and the rest will be rejected." Then click "next"-next-check "Edit Properties" and click finish.

In the Port 55555 properties window, uncheck the add Wizard, and then click add.

In the New Rule properties window, under the IP filter list tab, click add.

Write the name "so IP address", uncheck the "add Wizard" box, and then click "add".

Select the address tab in the pop-up dialog box, select any IP address for the source address and my IP address for the destination address. Cancel mirroring. Then select the "protocols" tab, select TCP for the protocol type, and set the IP protocol port to 55555 from any port to this port.

Click OK to close the IP filter property, and then OK to close the IP filter list. Click add again in the "New Rule" properties dialog box, and add another IP filter named: characteristic IP; source address is a specific IP address, and the destination address is my IP. Select TCP for the protocol type and set the IP protocol port to 55555 from any port to this port.

Select the filter actions tab on the New Rule properties dialog box.

Click add. Select Block, and the name in the General tab is changed to: block. Click OK.

Click add again. Select the license and change the name in the General tab to: license. Click OK.

Click IP filter list in the New Rule properties dialog box and select all IP addresses

(make sure the circle in front of it is selected), then select the filter actions tab and select Block. Click "apply" and then "OK".

In the "55555 Port" property, click add, select "specific IP", then select the "filter actions" tab, select "permission", and then "OK".

Click OK. Then select "Port 55555", right-click, and select "assign". You don't have to restart the machine to take effect.

3. To install IIS on this machine, you need to be able to open the default page of IIS normally.

Open start-Administrative tools-Server Manager, select roles on the left window, add roles on the right, and then click next.

Select "web Server (IIS)" and click "next"-"install"-- "close".

Open "start-Management tools-Internet Information Services (IIS) Manager", select the path in the left window: WIN-2Z26CQWA1B5\ website\ Default Web Site, and then click "Browse: 80 (http)" in the right window to open the default page of IIS.

4. Install MySQL in windows sever and open it normally.

If the system does not have "NET Framework 4.5.2", you need to install "NET Framework 4.5.2" first, and then click MySQL to install the package after installation.

Select "Iaccept the license terms" and click Next.

Select the installation type, select "Server only" here, install only the MySQL database server, and then click "Next". (other types can be installed. Here only take server only as an example)

After clicking "Execute" to install, click "Next"

Click "Next"

Configure the server type and service port number. Click "Next"

To configure the password for the root account and create a new user, click "Next"

Configure MySQL as a Windows service. Click "Next"

To apply the configuration, click "Execute" and click "Finish" when you are finished.

Click "Next", then click "Finish".

Configure environment variables

Right-click "computer" to select properties, then select "Advanced system Settings", select "Advanced" tab in the "system Properties" window, and then click "Environment variables".

Create a new user variable, (normally MySQL will be installed in this directory C:\ Program Files\ MySQL\ MySQL Server 5.5)

Variable name: MYSQL_HOME

Variable value: C:\ Program Files\ MySQL\ MySQL Server 5.5

Click OK

Edit the system variable "Path" and add% MYSQL_HOME%\ bin;, to the value of the variable and click OK-OK.

Generate the data file:

Run cmd as an administrator

Enter C:\ Program Files\ MySQL\ MySQL Server 5.5\ bin

Execute the command: mysqld-- initialize-insecure-- user=mysql

Test whether the installation is successful

Execute command: net start mysql55 starts the mysql service

Log in to MySQL

Execute the command: mysql-u root-p, and then enter the previously set root password.

After entering MySQL, execute the command show databases; to display the four default databases of the system.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report