Whenever you start a java project, the configuration of the environment and the configuration of some common tools are indispensable. Below I will briefly summarize the commonly used configuration instructions for JDK, MySQL, and Tomcat.
- JDK installation package: https://pan.baidu.com/s/1Nv3_s_aMeOSNXRkZWIKw8w , password: fpvf
- MySQL decompression package: https://pan.baidu.com/s/17cuixqYzVwTfhtGF-CPCjA , password: o8zw
- MySQL installation package: https://pan.baidu.com/s/1wv27kU8AkZGk5E-dhr8fbw , password: tcmw
- Navicat installation package: https://pan.baidu.com/s/10Q4gWRfzLeu2H5YMQn0TxQ , password: uq7b
- Tomcat decompression package: https://pan.baidu.com/s/1RUZzfYmi0J2D_Yt2xiQ6Sg , password: 4ymr
(1) JDK installation and environment configuration
(1) Click the exe file to install directly, the installation directory is best to be clear
(2) Configure environment variables:
JAVA_HOME: new variable, the value is the jdk installation directory
CLASSPATH: new variable, the value is .;%JAVA_HOME%\lib;% JAVA_HOME%\lib\tools.jar
PATH: add after the original value, the value is %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
(3) Verify the configuration is successful:
run the command java -version, javac -version
(2) MySQL installation and configuration of permissions and passwords
Here I recommend the MySQL decompressed version, which is easy to use, and most of them are also directly decompressed on the server, not the installation version. The following are the configuration instructions for the decompressed version:
(1) Unzip the decompressed version directly to the path, create a new my.ini configuration file, and put it in the directory
(2) Create an empty data folder under the path
(3) Install the service:
Enter the cmd command into the bin directory of the mysql installation ;
Execute the command mysqld --initialize-insecure --user=mysql
Execute the command mysqld install, if the installation is successful, you will be prompted to
start the service net start mysql
(4) Password modification (many ways):
Execute the command mysql -uroot -p, the default is no Password, press Enter to enter the
execution command, such as set password for root @localhost = password('123');
(5) Configure remote connection permissions:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'ip'IDENTIFIED BY ' password' WITH GRANT OPTION;
FLUSH PRIVILEGES;
(3) Tomcat installation
Is tomcat still installed? Just kidding, of course no need, just decompress it directly. If you are in the local eclipse, you can directly select the directory in the Server; if you are in the server, you can directly decompress it and put the war package in the webapps directory to run it. As for Other parameters can be modified as required.
The above are the basic operations of rapid development, hoping to help beginners quickly enter the development state.