機(jī)器環(huán)境:
mac 10.15.7
安裝Jenkins文件匕得,
使用brew 安裝。
- 首先安裝brew巾表,在終端輸入汁掠,命令,
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
然后根據(jù)操作提示集币,安裝即可考阱。如果失敗了,可多次嘗試鞠苟。
brew安裝說明
- 然后使用brew安裝Jenkins乞榨,同樣的,終端輸入命令
brew install jenkins
接下來当娱,就等著吃既,Jenkins自動(dòng)安裝布置好就ok。
- Jenkins安裝好了跨细,在瀏覽器中鹦倚,輸入localhost:8080,就可以訪問到Jenkins冀惭。
問題1: 如果出現(xiàn)localhost:8080可以訪問震叙,但是換成本機(jī)的ip地址=8080,卻無法訪問的情況散休。
解決:修改目錄/usr/local/opt/jenkins
下的homebrew.mxcl.jenkins-lts.plist
媒楼。將--httpListenAddress=127.0.0.1
修改為--httpListenAddress=0.0.0.0
即可。然后重啟Jenkins溃槐。
- Jenkins常用啟動(dòng)命令
# Start the Jenkins service:
brew services start jenkins
# Restart the Jenkins service:
brew services restart jenkins
# Update the Jenkins version:
brew upgrade jenkins
node js
下載mac版,安裝即可
同時(shí)安裝上node常用的幾個(gè)工具命令科吭。
sudo npm install -g anywhere
sudo npm install -g gulp
python
mac自帶python 2.7.x及 python3 3.8.x昏滴。但是使用pip還需要自己安裝,pip支持对人。
在命令行輸入谣殊,其中一條或是全部。
# python2
sudo easy_install pip
# python3
curl https://bootstrap.pypa.io/get-pip.py | python3