执行安装过程中自动重启了sshd导致一直安装不上去

问答中心分类: Linux执行安装过程中自动重启了sshd导致一直安装不上去
mykioer asked 6 年 ago
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.cn99.com
No packages marked for update
Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.
If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.
Note: Forwarding request to 'systemctl enable sshd.service'.
Note: Forwarding request to 'systemctl enable crond.service'.
Note: Forwarding request to 'systemctl enable messagebus.service'.
Note: Forwarding request to 'systemctl enable irqbalance.service'.
error reading information on service syslog: No such file or directory
Note: Forwarding request to 'systemctl enable rsyslog.service'.
setenforce: SELinux is disabled
fs.file-max = 1000000
net.ipv4.tcp_max_tw_buckets = 6000
net.ipv4.tcp_sack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_rmem = 4096 87380 4194304
net.ipv4.tcp_wmem = 4096 16384 4194304
net.ipv4.tcp_max_syn_backlog = 16384
net.core.netdev_max_backlog = 32768
net.core.somaxconn = 32768
net.core.wmem_default = 8388608
net.core.rmem_default = 8388608
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_fin_timeout = 20
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_syn_retries = 2
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_mem = 94500000 915000000 927000000
net.ipv4.tcp_max_orphans = 3276800
net.ipv4.ip_local_port_range = 1024 65000
net.nf_conntrack_max = 6553500
net.netfilter.nf_conntrack_max = 6553500
net.netfilter.nf_conntrack_tcp_timeout_close_wait = 60
net.netfilter.nf_conntrack_tcp_timeout_fin_wait = 120
net.netfilter.nf_conntrack_tcp_timeout_time_wait = 120
net.netfilter.nf_conntrack_tcp_timeout_established = 3600
16 Oct 15:25:19 ntpdate[28145]: adjust time server 5.79.108.34 offset -0.002969 sec
Note: Forwarding request to 'systemctl enable iptables.service'.
Redirecting to /bin/systemctl restart iptables.service
Redirecting to /bin/systemctl restart rsyslog.service
Restarting sshd (via systemctl): Connection closing...Socket close.

5 Answers
oneinstack answered 6 年 ago
那个供应商的服务器?

mykioer answered 6 年 ago
是自建机房的机器,centos7.2系统,其他的装没有这个问题。试了lnmp.org的包,可以装。oneinstack安装nginx+mysql就会出现sshd断开。

oneinstack answered 6 年 ago
这个不应该呀,尝试不启用iptables呢?

mykioer answered 6 年 ago
防火墙关闭,几种安装方式都试过,都会重启,检查了sshd_config配置没有异常,目前发现和之前安装成功的服务器对比就是版本不一样,这个是OpenSSH_7.8p1,准备装OpenSSH_7.5p1试试看。

mykioer answered 6 年 ago

OpenSSH_7.8p1降到OpenSSH_7.6p1后安装成功
或者是修改include/init_CentOS.sh中的service sshd restart