1.配置用户名和邮箱 2.初始化 3.设置仓库地址 4.拉取代码 5.设置保存账号密码时间 6.查看状态 sudo git config --global user.name 'zhouchaoke' sudo git config --global user.email'[email protected]' sudo git init sudo git remote add origin https://github.com/zhouchaoke/remake.exe.git sudo git pull origin master sudo git config --global credential.helper store sudo git status
mvn clean mvn compile mvn package
nohup java -jar springboot-0.0.1-SNAPSHOT.jar > logname.log 2>&1 &
Cat logname.log
注意点:
注意的问题是:target输出的文件路径必须要由权限,就是从github克隆下来的项目如 项目名是remake.exe需要赋予权限例如 sudo chown ubuntu:ubuntu remake.exe sudo chmod 777 remake.exe
文件的所有者不对,切换一下就行
问题三:解决git error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission deny
问题四:Cloning into 'remake.exe'...error: RPC failed; curl 16 Error in the HTTP2 framing layerfatal: expected flush after ref listing
git config --global http.postBuffer 5242880000
建议直接apt install maven 下载 默认地址,尽量不要包下载