We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ls id_rsa id_rsa_vc known_hosts rhc.pub id_rsa.pub id_rsa_vc.pub rhc
发现存在密钥对。若不存在,则生成一对
ssh-keygen -t rsa --P
ssh root@111.231.243.123 cd ~/.ssh/ vim authorizd_keys
vim 打开authorized_keys之后,把你本机的公钥里的内容拷贝到远程机器的authorized_keys文件中,不要删除authorized_keys已有的公钥,在已有的内容的下面粘贴即可。然后保存文件。验证是否能免密登录了。
ssh root@111.231.243.123
经验证发现登录成功,没要求输入密码。此时免密登录的设置完成
npm list -g --depth=0 | grep pm2 -- pm2@2.8.0
没安装的话,全局安装一下pm2
npm install pm2 -g
pm2 ecosystem
pm2 deploy ecosystem.config.js dev setup
pm2 deploy ecosystem.config.js dev
学习pm2的deploy,详情请进入
The text was updated successfully, but these errors were encountered:
No branches or pull requests
利用pm2自动发布
1.配置ssh免密登录
发现存在密钥对。若不存在,则生成一对
vim 打开authorized_keys之后,把你本机的公钥里的内容拷贝到远程机器的authorized_keys文件中,不要删除authorized_keys已有的公钥,在已有的内容的下面粘贴即可。然后保存文件。验证是否能免密登录了。
经验证发现登录成功,没要求输入密码。此时免密登录的设置完成
2.配置文件
没安装的话,全局安装一下pm2
3.发布
学习pm2的deploy,详情请进入
The text was updated successfully, but these errors were encountered: