一、Homebrew安裝
ruby環境:
官網方式:
替換及重置Homebrew默認源方法一:
替換brew.git:
cd "$(brew --repo)"
替換homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
替換及重置Homebrew默認源方法二:
cd $home && brew
替換及重置Homebrew默認源方法三:
ruby brew_install
brew_install文件
安裝到homebrew的軟件位置爲: /usr/local/Cellar/
配置文件位置: /usr/local/etc
二、Redis安裝
安裝:
brew search redis
brew install redis@4.0
echo 'export PATH="/usr/local/opt/redis@4.0/bin:$PATH"' >> ~/.bash_profile
brew services start redis@4.0
修改redis配置文件:
Macintosh HD ▸ usr ▸ local ▸ etc ▸ redis.conf
三、Mysql安裝
homebrew安裝mysql:
brew search mysql
brew install mysql@5.7
echo 'export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"' >> ~/.bash_profile
brew services start mysql@5.7
普通安裝:
下載mysql-8.0.16-macos10.14-x86_64.dmg
cd /usr/local/bin
ln -fs /usr/local/mysql-8.0.16-macos10.14-x86_64/bin/mysql mysql
/usr/local/mysql/bin/mysql -u root -p
經常使用命令:
mysql -u root -p
show databases;
use mysql;
show tables;
quit;
四、Maven安裝
在MAC指定文件夾打開終端:
普通安裝:
下載maven
sudo tar -xzvf apache-maven-3.6.1-bin.tar -C ~/maven
vim ~/.bash_profile追加內容
export M2_HOME=$HOME/maven/apache-maven-3.3.9
export PATH=$PATH:$M2_HOME/bin
source ~/.bash_profile
mvn -v
五、Idea破解
獲取註冊碼:
修改hosts文件:
sudo vim /etc/hosts
離線安裝插件:
IDEA-->Setting-->Plugins--> 按鈕"Install plugin from disk..."
六、JDK安裝
安裝位置:Macintosh HD ▸ 資源庫 ▸ Java ▸ JavaVirtualMachines
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home
CLASSPAHT=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH:
export JAVA_HOME
export CLASSPATH
export PATH
七、RabbitMQ安裝
brew install rabbitmq
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.bash_profile
brew services start rabbitmq
密碼:guest 帳號:guest
八、Zookeeper安裝
brew install zookeeper
brew services start zookeeper
九、Node安裝
brew install node
npm -v
node -v
十、Vue安裝
cnpm install webpack -g
cnpm install --global vue-cli
vue -V
⌘ + X剪切
⌘ + C 複製
⌘ + V粘貼
⌘ + option + V移動
⌘ + W關閉當前窗口
⌘ +Q 退出
⌘ + option + esc 強制退出軟件
⌘ + Z撤銷
⌘ + A全選
⌘ + delete刪除
⌘ + 空格 切換輸入法
⌘ + tab 切換窗口
MacOS觸碰板使用