智慧湾部署服务

环境 centos springBoot

安装git

sudo yum install -y git

生成秘钥,回车,不要乱输,公钥在/root/.ssh/id_rsa.pub中,cat一下放到仓库即可

git config --global user.name "yangpeng"
git config --global user.email "[email protected]"

查看配置是否生效

git config --list

git 生成秘钥

ssh-keygen -t rsa -C "[email protected]"

一路回车即可

cd ~/.ssh

克隆代码

git clone [email protected]:cb368416b55a4c1d9801f26cd2577f1e/smart-parent.git

看看/切换分支

git branch -a
git checkout -b zhanghanlun origin/zhanghanlun

安装mvn

wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
yum -y install apache-maven

设置阿里云源


      alimaven
      aliyun maven
      http://maven.aliyun.com/nexus/content/groups/public/
      central       

创建脚本文件

touch zhihuiwan.sh

授权脚本可执行

chmod u+x zhihuiwan.sh

远程拷贝scp

scp heyi-util-0.0.3.jar  [email protected]:/root

安装node

curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -
yum install -y nodejs

npm安装yarn

修改JAVA配置文件

vim /etc/profile
export JAVA_HOME=/usr/local/jdk1.8.0_201
export CLASSPATH=$:CLASSPATH:$JAVA_HOME/lib/
export PATH=$PATH:$JAVA_HOME/bin

使配置文件生效

source /etc/profile

yarn设置淘宝源

yarn config set registry http://registry.npm.taobao.org

你可能感兴趣的:(智慧湾部署服务)