linux-trra:/usr/local> $CATALINA_HOME
bash: /home/anisha/openGTS17Nov/apache-tomcat-7.0.32/: is a directory
linux-trra:/usr/local # ln -s $CATALINA_HOME tomcat
linux-trra:/usr/local # file tomcat
tomcat: symbolic link in a loop
linux-trra:/usr/local> ls
apr bin games gts include jdk lib lib64 man OpenGTS_2.4.5 sbin share src tomcat
这是为什么雄猫在这种特殊情况下被认为是符号链接,解决这个问题的方法是什么?
anisha@linux-trra:~/openGTS17Nov/apache-tomcat-7.0.32> ls
bin conf lib LICENSE logs NOTICE RELEASE-NOTES RUNNING.txt temp webapps work
anisha@linux-trra:~/openGTS17Nov/apache-tomcat-7.0.32> file *
bin: directory
conf: directory
lib: directory
LICENSE: ASCII English text, with CRLF line terminators
logs: directory
NOTICE: ASCII English text, with CRLF line terminators
RELEASE-NOTES: ASCII English text, with CRLF line terminators
RUNNING.txt: ASCII English text, with CRLF line terminators
temp: directory
webapps: directory
work: directory
anisha@linux-trra:~/openGTS17Nov/apache-tomcat-7.0.32>
答案1
看来你正面临一些符号链接循环......船长在里面很明显。现在是更准确地诊断问题的时候了。进去
$CATALINA_HOME
并找到隐藏在那里的所有符号链接:
寻找 。 -l型
find 将比这里的 file 更强大:它为您提供递归,并且输出仅显示您感兴趣的内容。如果这不起作用,请转到上一级并再次迭代 find。
请注意,您可能需要点击许多链接才能找到完整的循环 - 请耐心等待!