服务器
ssh [email protected]**.***
dev@culckqooy
sudo -i
dev@culckqooy
cd /data/www/product_selection_front
git status
git pull
ll
pwd
cd -
logout
ssh码地址: `C:\Users\Administrator\.ssh\id_rsa.pub`
ssh-keygen
ssh-copy-id [email protected]**.***
前端发布代码并配置服务器
/data/www git clone ~
cd msoa
git status
ls
cd dist
pwd
cd /etc/nginx/conf.d/
ls
cp ~~ msoa.stosz.com.conf
vim msoa.stosz.com.conf
**如果不可编辑,可按insert键切换**
service nginx restart
cat ~ 查看
server {
listen 8099;
server_name msoa.stosz.com;
index index.html;
root /data/www/msoa/dist;
}
服务器克隆不了文件
Permissiondenied (publickey).
fatal:Could not read from remote repository.
Pleasemake sure you have the correct access rights
andthe repository exists.
ssh-keygen -t rsa -C "邮箱地址"
将公钥复制到
githubalicodessh.然后 git clone **