Chapter 1 configuration of development environment under mac, Chapter 1 mac Development Environment

Source: Internet
Author: User

Chapter 1 configuration of development environment under mac, Chapter 1 mac Development Environment

Mac is similar to Linux, but different from windows.

 

1. jdk

Built-in mac, no installation required.

View the installed jdk version:

How to open a command terminal: The mac command terminal is similar to Windows cmd and Linux Command Line terminal.

Method 1:

Finder> Application> utility> Terminal

Method 2:

Click "command + space ",

Enter "java-version" on the terminal ". View the information, just like Windows.

 

Note:

  • "Command + space" is the shortcut key for opening the search tool in mac. This search tool is very good.
  • It is worth noting that, in fact, the default mac Input Method for switching between Chinese and English shortcuts is also "command + space", which leads to a conflict of shortcut keys, resulting in one of them being unavailable, so you need to modify the shortcut keys, the method is as follows: System Preferences --> language and region --> keyboard preferences -->

Then click the shortcut key to modify it.

 

2. maven

Download it, decompress it, configure settings. xml, and configure private servers on mac. In windows, you also need to configure "local repository" in addition to private servers ".

Finally, configure the environment variables as follows:

If no. bash_profile exists, first "mkdir. bash_profile ".

Use "vi. bash_profile" to open the file and add the following two information.

  • Article 1: Set the maven decompression directory

Finally, open the terminal --> enter "mvn-v" to check whether the installation is successful.

Note:

  • Ls-a: Add-a to display the hidden files.
  • The use of vi is the same as that of Linux.

 

3. git

Built-in mac, no installation required.

View the git version: Open the terminal and enter "git -- version" to check whether the version is successful.

Git usage: Simply enter the command on the terminal.

 

4. eclipse

Download, decompress, and configure settings. xml to eclipse.

Open "preferences": Unlike Windows, click Eclipse next to the Apple symbol --> click "preferences" ("preferences" in mac is "preferences" in windows ")

Note:

  • Here we only need to set the settings. xml address, and the local repository configuration does not need to be configured. The default configuration is :~ /. M2/repository
  • ~ Is/Users/enniu1/

5. The installation of MySQL, navicat, and other software has not yet been conducted and will be recorded later.

 

Appendix: vi usage

Edit the. bash_profile File For eg. vi.

  • Vi. bash_profile: open the file
  • Click I to enter the data insertion mode.
  • Edit document
  • Click esc to exit the pluggable mode.
  • : Wq --> Save the document and exit vi;: q! --> Directly exit vi and do not save the document, which is equivalent to no document editing

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.