Browse Source

07env-install-centos.sh

master
lizw 3 years ago
parent
commit
1b253eafe7
  1. 4
      00base/07env-install-centos.sh

4
00base/07env-install-centos.sh

@ -274,7 +274,7 @@ function init:add_user() {
function init:git() { function init:git() {
log::info "[git]" "安装git环境..." log::info "[git]" "安装git环境..."
local host="127.0.0.1" local host="127.0.0.1"
local exc_cmd = "git config --global credential.helper store" local exc_cmd="git config --global credential.helper store"
command::exec "${host}" " command::exec "${host}" "
yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
yum -y install git yum -y install git
@ -333,7 +333,7 @@ function init:nginx() {
function init:nodejs() { function init:nodejs() {
log::info "[nodejs]" "安装nodejs环境..." log::info "[nodejs]" "安装nodejs环境..."
local host="127.0.0.1" local host="127.0.0.1"
local exc_cmd = " local exc_cmd="
# 配置npm源 # 配置npm源
npm config set registry https://registry.npm.taobao.org npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist npm config set disturl https://npm.taobao.org/dist

Loading…
Cancel
Save