1 ssh-host-config
错误: There are still ssh processes running. Please shut them down first.
解决: ps -ef | grep -v grep | grep ssh kill -9 xxx
2 ssh localhost
错误:connection closed by 127.0.0.1
解决: (1) mkpasswd -l -c > /etc/passwd
(2) mkgroup -l -d > /etc/group
(3) 再重新进入Cygwin,mkpasswd和mkgroup提示消失,再次配置ssh,并执行ssh localhost
==> http://bbs.hadoopor.com/thread-348-1-1.html
3 JAVA_HOME
export JAVA_HOME=/cygdrive/c/Progra~1/Java/jdkxxx,由于Cygwin无法识别“Program Files”中间的空格,如果不按照上述设置,则系统无法找到Jdk安装目录。
当然,你也可以在Cygwin的/usr/local目录下添加一个连接,从而方便配置JAVA_HOME。例如:
ln -s /cygdrive/c/Program\ Files/Java/jdkxxx /usr/local/jdkxxx
export JAVA_HOME=/usr/local/jdkxxx最好写到bash_profile下)
时间: 2024-11-01 16:33:02