1. 程式人生 > >Linux開發環境搭建記錄(Ubuntu 16.04 LTS)

Linux開發環境搭建記錄(Ubuntu 16.04 LTS)

Linux開發環境搭建記錄(Ubuntu 16.04 LTS)

安裝基本軟體

  1. 安裝git $ sudo apt-get install git
  2. 安裝maven $ sudo apt-get install maven
  3. apt-cache search 可查詢相關包
  4. 修改源的檔案路徑:/etc/apt/source.list修改源的檔案路徑:/etc/apt/source.list
  5. 安裝oracle-Java8

設定git

  1. 修改/etc/hosts,將公司gitlab地址新增到檔案中
  2. 命令如下:
$ git init
$ mkdir
xxx-services //與遠端倉庫名相同 $ git config --global user.name "Your Name" $ git config --global user.email "[email protected]" $ ssh-keygen -t rsa -C "[email protected]" $ git clone [email protected] $ cd xxx-services $ git checkout develop