4 部署上线

部署上线
安装Nginx

参考的是http://blog.csdn.net/BigStupidBear/article/details/72809472

安装mysql

参考的是https://www.cnblogs.com/renjidong/p/7047396.html

安装git

参考的是https://www.cnblogs.com/fuyuanming/p/5804695.html

安装后需要配置一些东西

[root@localhost git-2.0.5]# git config --global user.name "[email protected]"

[root@localhost git-2.0.5]# git config --global user.email "[email protected]"

[root@localhost git-2.0.5]# git config --global core.autocrlf false  //解决Windows,linux换行符冲突

[root@localhost git-2.0.5]# git config --global core.quotepath off //设置utf-8的编码

[root@localhost git-2.0.5]# git config --global gui.encoding utf-8//避免gui的乱码

[root@localhost git-2.0.5]# ssh-keygen -t rsa -C "[email protected]"//生成秘钥,一路回车

[root@localhost git-2.0.5]# ssh-add ~/.ssh/id_rsa //添加秘钥

Could not open a connection to your authentication agent.

[root@localhost git-2.0.5]# eval `ssh-agent` //因为错误需要执行

Agent pid 25857

[root@localhost git-2.0.5]# ssh-add ~/.ssh/id_rsa

Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa)

[root@localhost git-2.0.5]# cat ~/.ssh/id_rsa.pub//查看秘钥

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxxOyHGruKrPuSIKKBgRuw6rb0Z1WdJ8dr+mIkvWxV70Wa4d8CVbwfz3nhLQbR8jS4RLMTGacMrsi6DzpGSNsV6MBnblFPA3v1uVhsc0buDNOhzlzkf4IdqunBaiaAaZULdNDHgRVi2slcYmEORDMAP3x85d+azHrIfnMwxV/7HPbA8ktlwJW8QbwAVdWOKBGAYBM9lVTfPZ+SjJXJAnSc3w7KjojPl8VYheEG6YKxf9aFotE6oYMLeouswuteKKGITlp7tJ4ApZeaGIDgnhnjm+UpWxQbbf8qvd/8Dv3TjFf5ZJbOtepKBMlodDKKL+ekpLbERNu26adjoSVh8aaNw== [email protected]

//生成秘钥,登录码云-设置-ssh,把密码粘贴进去

安装ftp服务器

http://blog.csdn.net/cc_want/article/details/77766866





猜你喜欢

转载自blog.csdn.net/qq_35035078/article/details/82720772