SSH连接断开连接

时间:2016-05-02 07:50:04

标签: django amazon-web-services nginx ssh

我是来自韩国的学生

首先,我很抱歉我的低级英语:)

我使用AWS + nginx + django

制作网络服务

我使用SSH协议连接到AWS实例(ubuntu)

Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-74-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

 System information as of Sat Apr 30 07:03:51 UTC 2016

 System load:  0.0               Processes:           105
 Usage of /:   23.8% of 7.74GB   Users logged in:     0
 Memory usage: 14%               IP address for eth0: 172.31.17.137
 Swap usage:   0%

 Graph this data and manage this system at:
    https://landscape.canonical.com/

 Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

21 packages can be updated.
17 updates are security updates.


Last login: Sat Apr 30 07:03:52 2016 from 210.103.124.253
pyenv-virtualenv: no virtualenv has been activated.

manage.py runserver --settings=abc.settings.production

所以每个人都可以访问我的网络服务!

但......在30分钟之后......

SSL连接本身已损坏.... 导出此消息

packet_write_wait: Connection to 52.69.xxx.xxx: Broken pipe

并且没有人无法访问我的网络服务......

所以......当我的电脑关机时,我的网站无法访问,没有SSL连接...

我希望每个人都能全天候访问我的网络服务

请给我一个方法谢谢你:)

1 个答案:

答案 0 :(得分:1)

如果要运行在当前shell终止后继续运行的命令,则应使用nohup命令启动它。

这导致进程与其初始父shell分离,因此当父进程终止时它不会被终止。