当我通过 ssh 在 AWS EC2 中登录我的服务器时,我不断收到此消息
我认为这叫做 MOTD
43 packages can be updated.
22 updates are security updates.
Run Code Online (Sandbox Code Playgroud)
但我已经做了
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
Run Code Online (Sandbox Code Playgroud)
我也重新启动了我的实例。
请指教。
我该如何进一步排除故障?我正在尝试运行一个简单的 nginx 容器,但负载平衡器抱怨运行状况检查失败并且任务没有响应其 ip 号,可能是因为负载平衡器出错。
我在 cloudformation 中将任务的优先级设置为 2。如果我尝试将优先级设置为 1,则 CF 堆栈将无法部署。能跟这有关系吗?
# Create a rule on the load balancer for routing traffic to the target group
LoadBalancerRule:
Type: AWS::ElasticLoadBalancingV2::ListenerRule
Properties:
Actions:
- TargetGroupArn: !Ref 'TargetGroup'
Type: 'forward'
Conditions:
- Field: path-pattern
Values: [!Ref 'Path']
ListenerArn:
Fn::ImportValue: !Ref LoadBalancerListener
Priority: !Ref 'Priority'
Run Code Online (Sandbox Code Playgroud)
资源看起来像:
Resources:
# The task definition. This is a simple metadata description of what
# container to run, and what resource requirements it has.
TaskDefinition:
Type: AWS::ECS::TaskDefinition
Properties: …Run Code Online (Sandbox Code Playgroud) amazon-web-services amazon-elb amazon-cloudformation aws-fargate
我可以通过 ssh 连接到我的实例并使用它,但如果我有一段时间不活动,那么我必须重新连接。是协议、服务器还是客户端导致超时?Windows 8.1 上的 cygwin 和 putty 都会发生这种情况(但我没有在 2 个 Ubuntu 之间尝试过)。
我有一台旧的 (Linux 2.4.20) Debian 服务器,我忘记了 root 密码。当我尝试进入单用户模式时,一些 init 脚本永远不会退出。它使用了 LILO 引导加载程序。我想更改 root 密码,因此我尝试启动到单用户模式。但是当我尝试启动到单用户模式时,系统不会一直启动。它在尝试运行自定义 init shell 脚本时停止。它说执行....
你能告诉我我能做什么吗?我想在单用户模式切换到root密码,但现在我不敢重新启动它,因为Crtl+ Alt+Delete不重新启动的启动过程中的工作。
amazon-ec2 ×2
amazon-elb ×1
aws-fargate ×1
boot ×1
debian ×1
linux ×1
password ×1
ssh ×1
ubuntu-10.04 ×1