Article Directory
foreword
In order to consolidate the knowledge learned, the author tried to start publishing some blogs of learning notes for future review. Of course, it would be great if it could help some newcomers learn new technologies. The author is a piece of food. If there are any mistakes in the records in the article, readers and friends are welcome to criticize and correct.
(The reference source code of the blog can be found in the resources on my homepage. If you have any questions during the learning process, please feel free to ask me in the comment area)
1. Install JDK
1. Download JDK
- Open the Java download page of the Oracle official website https://www.oracle.com/java/technologies/downloads/
- Select the JDK version you need. If you are new to Java, it is recommended to download the latest version of JDK, click the "Download" button, accept the license agreement, and select the JDK version suitable for your operating system to download
2. Install JDK
- Open the downloaded JDK installer (for example, the EXE file on Windows).
- Click the "Install" button, accept the license agreement, and select the installation directory.
- Click the "Close" button, and the JDK installation is complete.
3. Set environment variables
After installing the JDK, you need to set the JAVA_HOME and PATH environment variables to use Java on the command line or in scripts
- Open Control Panel, select "System and Security" (or "System"), then select "System"
- Click the "Advanced system settings" link to open the "System Properties" dialog
- Click the "Environment Variables" button to open the "Environment Variables" dialog box
- In the "System Variables" section, click the "New" button, enter "JAVA_HOME" as the variable name, and enter the absolute path of the JDK installation path just now as the variable value (for example, C:\Program Files\Java\jdk1.8.0_291)
- Edit the PATH variable, and set the newly created JAVA_HOME variable plus the bin directory to PATH
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
- Click the "OK" button to save and close all dialog boxes.
4. Verify the installation
- Enter the following command in the command line or terminal (Win + R) to verify that the JDK has been successfully installed: java -version
- If you see the version information of JDK, it means that JDK has been successfully installed
2. Install Redis
1. Unzip the installation package
The Windows version of Redis is a green software, which can be used directly after decompression. After decompression, the directory structure is as follows
2. Double-click redis-server.exe to start redis
3. Install RedisDesktopManager (Redis visualization tool)
1. Install the package under the official website: https://redisdesktop.com/download
2. Click on the installation package, and keep clicking on the next step for fool-proof installation
3. Enter the corresponding connection name, local proxy address and user password to connect to the redis database
4. Install MySQL
1. Version introduction
- Community Edition (MySQLCommunity Server) is free, MySQL does not provide any technical support
- The commercial version (MySQL Enterprise Edition) is charged and can be tried for 30 days, and official technical support is provided
2. Download (Community Edition)
Download address: https://dev.mysql.com/downloads/windows/installer/8.0.html
3. Double-click the official installation package file
3. Select the default developer mode Developer Default, click next
4. Check the required environment, click next, then click yes to continue the installation
5. Select the primary key required for Mysql installation, and click Execute to execute
6. After installing the components (about 5min) click next
7. Click next
8. Click next
9. Use the recommended installation method, click next
10. Set the login password of the default user root
11. Click next
12. Click Execute, then click Finish
13. After installing MySQL, you need to configure environment variables so that you can connect to MySQL in any directory. On This PC, right click and select Properties
14. Click "Advanced System Settings" on the left and select Environment Variables
15. Find the Path system variable and click "Edit"
16. Select "New" to add the bin directory under the MySQL Server installation directory to the environment variable
17. Method 1: Use the client command line tool provided by MySQL to connect to the client
18. Method 2: Use the command line tool that comes with the system to execute the command: mysql [-h 127.0.0.1] [-P 3306] -u root -p
Parameters:
-h: the host IP where the MySQL service is located
-P: the MySQL service port number, default 3306
-u: the MySQL database user name
-p: the password corresponding to the MySQL database user name
[]内为可选参数,如果需要连接远程的MySQL,需要加上这两个参数来指定远程主机IP、端口,如果 连接本地的MySQL,则无需指定这两个参数。
5. Install navicat (Mysql visualization tool)
1. Download the navicat installation package from the official website
2. Install navicat
Just click the next step to install it foolishly, and you can modify the default installation path according to your needs
3. Open navicat, create a new connection, enter the database name (optional) and user password (the one set during the installation process), and then click Connect
4. The connection is successful
6. Install VMWare
1. Install VMWare
2. Open VMWare and install the image in VMWare (take CentOS as an example)
3. Create a new virtual machine, select Typical, and click Next
4. Add the CD image file, choose to install the operating system later, and click Next
5. Select Linux for the client operating system, and the version selection depends on the installed image (here we take CentOS7 as an example), click Next
6. Name the virtual machine and select the workspace, click Next
7. Set the disk size, choose to split the virtual disk into multiple files, and click Next
8. Click Customize Hardware, configure memory size, number of processors and configure IOS image file source, close the hardware configuration page after configuration, and click Finish
9. The effect is as follows
10. Run the virtual machine, select the Install CentOS image option (ctrl + alt and move the mouse to switch between the virtual machine and the computer desktop)
11. Select language
12. Wait for loading, configure the mirror installation location, click to start the installation after loading
13. Set the ROOT password and restart the virtual machine
14. Enter the user name and password to log in to the virtual machine
15. Network card settings
- Problem: IP address initialization fails due to network card not loaded when starting server
- Solution: modify the network initialization configuration, set the network card to initialize when the system starts
1). Enter the relevant command lines in turn to enter the ifcfg-ens33 file for editing
- cd / – enter the root directory
- cd etc – enter the etc directory
- cd sysconfig – enter sysconfig diary
- cd network-scripts – enter network-scripts
- vi ifcfg-ens33 - edit ifcfg-ens33 file
2). Click the keyboard [i] to enter the editing state, change the ONBOOT attribute value to yes, click the keyboard [ESC], and directly input: wq to save and exit
- i – enter edit mode
- Cursor – move the cursor
- < ESC > --> :wq --> – save and exit
3). Right-click the virtual machine in the left menu, restart and log in, we found that the ip address is set successfully
7. Install finalshell (VMWare visualization tool)
1. SSH remote connection tool finalshell installation, just double-click to run the Finalshell installer to complete the installation
2. Run and use FinalShell to connect to Linux, the steps are as follows
3. Run the virtual machine in FinalShell, enter the ip address query command, and test the operation, the effect is as follows
Summarize
Everyone is welcome to leave a message for exchange and criticism. If the article is helpful to you or you think the author's writing is not bad, you can click to follow, like, and bookmark to support.
(The reference source code of the blog can be found in the resources on my homepage. If you have any questions during the learning process, please feel free to ask me in the comment area)