機(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安裝說(shuō)明
- 然后使用brew安裝Jenkins,同樣的,終端輸入命令
brew install jenkins
接下來(lái),就等著,Jenkins自動(dòng)安裝布置好就ok。
- Jenkins安裝好了,在瀏覽器中,輸入localhost:8080,就可以訪問(wèn)到Jenkins。
問(wèn)題1: 如果出現(xiàn)localhost:8080可以訪問(wèn),但是換成本機(jī)的ip地址=8080,卻無(wú)法訪問(wèn)的情況。
解決:修改目錄/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