解决软连接ln报错-bash: /usr/local/bin/mysql: Too many levels of symbolic links


使用一下命令软连接以后在使用时报错:

cd /temp

ln -s logs /data/logs

cd /data/logs

touch test

-bash: /usr/local/bin/mysql: Too many levels of symbolic links

解决办法,建立软连接的时候一定要使用绝对路径,更改一下命令就好了

rm -rf /data/logs

ln -s /temp/logs /data/logs

QQ截图20140122132358

 


Whatever is worth doing is worth doing well.