brew installed under mac

After using mac, I found that many software can be brewed through the terminal command. . . to install.

I checked and found that brew was originally a package management tool on the osx system. The full name is Homebrew. The official website: https://brew.sh (this official even contains various languages! Perfect!).

According to the introduction on the official website, the installation is really very simple, and it can be done with one line of commands, so let's follow the operation below.

Enter the command line in the terminal:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

 

 The first is to prompt the update, to press the RUTURN key (ie enter key) to continue.

After that, you need to enter the password to download, as shown below is the download

 

Finally, it will prompt that the installation is successful, but it cannot be used yet. It will prompt:

-bash: brew: command not found

 

At this time, the path should also be configured, vim .bash_profile enters the editor, because I already have other paths, so I only need to add " :$PATH:/usr/local/bin "

":" indicates division with other paths, as shown in the following figure

Then enter brew again, and the installation is complete.

 

Let's try to install the software and install jmeter. The installation is successful in an instant as shown below, and there is no need to download it. It's perfect!

 

 

Guess you like

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