[Linux] 在 Ubuntu 上安裝 Jenkins CI Server 來 Bulid NetCore 2.0

安裝NetCore 2.0 + Node.js + npm

  1. 下載 Node.js 套件清單 (若無額外下載清單則會安裝到很舊的版本,且會有各種奇奇怪怪的錯誤跑出來)
    curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh sudo bash nodesource_setup.sh
    sudo bash nodesource_setup.sh
  2. 安裝 Node.js + npm
    sudo apt-get install nodejs
  3. 下載 NetCore 套件清單
    curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
    sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
    sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
  4. 開始安裝 NetCore 2.0
    sudo apt-get update
    sudo apt-get install dotnet-sdk-2.0.2
  5. 等他跑完就可以囉


這裡的資訊對您有用嗎?歡迎斗內給我