Configure java development environment on mac

The steps for the project to run on the mac:
1. Visit, https://brew.sh/    install this
and then 
brew install git  
brew install maven, settings.xml needs to be placed in the directory location /usr/local/Cellar/maven/<version>/libexec/conf
brew install switchhosts (follow the prompts to change the installation directory)
brew install tomcat ,目录在/usr/local/Cellar/tomcat/version/libexec/
 
2. Download the jdk installation, the installed location is system/java/javavirtualmachines/jdk1.8

3. Download the idea and install it. After that, open the idea. The place where maven is set is on the right side, not in the original settings menu.  
 
 
After that, set the tomcat local server and specify the tomcat directory.
 
4. Note that /etc/hosts is not allowed to be modified. You can drag it to the desktop first, modify it, and then drag it back. When overwriting, identify it first, and then replace it.
 
5.  In the /export/Instances and other folders in the program, you need to enter / in the finder (click the finder with two fingers, then go to the folder and enter /), and then create it in the root directory.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324911860&siteId=291194637