解决 /dev/null is not a character device! 问题Device
昨天我们一个客户无法 ssh 到他的 VPS,但是可以 ping 通。从控制台上看没有异常,登陆进去后发现 ssh 服务没有启动,企图启动(重启)这个服务时报错 /dev/null is not a character device!:
# /etc/init.d/ssh restart Restarting OpenBSD Secure Shell server: sshd failed! /dev/null is not a character device!.解决办法是,删除 /dev/null 后重建一个字符设备:
# rm -f /dev/null # mknod /dev/null c 1 3然后启动(重启)ssh 就可以了:
# /etc/init.d/ssh restart Restarting OpenBSD Secure Shell server: sshd.ReactNode vs ReactElement: Master the Differences to Avoid Errors and Boost React Performance
解决 modulenotfounderror: no module named 'urllib2' 错误的终极指南
如何解决nodename nor servname provided or not known错误的实用指南
如何解决 Node.js 下载时的 could not retrieve https //nodejs.org/dist/latest/shasums256.txt 错误
解决system.argumentnullexception:只不能为null的编程技巧
解决could not initialize class org.apache.ignite.ignitejdbcthindriver错误的详细指南
解决npm错误:如何应对could not retrieve https://npm.taobao.org/mirrors/node/latest/shasums256.txt问题
Fix Git Remote Write Access to Repository Not Granted: Troubleshooting Guide for Developers