当使用非root用户登录CentOS时,发现很慢,而且弹出以下信息: /usr/bin/xauth:  timeout in locking authority file /home/***/.Xauthority 一般是因为在创建用户时,用户家目录属组和属主不对,导致,所以最简单的解决办法就是给用户家目录赋予用户的所有权限就能解决.再次登录时,会重新创建一个这样的文件,下次登录就快了.…
使用 Xshell 6 首次连接虚拟机 CentOS 7.6 出现这样的提示: /usr/bin/xauth: file /root/.Xauthority does not exist 解决: 只需要退出再次登录即可,系统会自动创建.…
错误信息如下: /usr/bin/xauth: file /home/user/.Xauthority does not exist 错误原因:是因为添加用户时没有授权对应的目录,仅仅执行了useradd user而没有授权对应的家目录 直接解决办法如下(执行如下命令,以后就登录到终端上就不会出现上面的错误信息): chown username:username -R /home/user_dir 不过一般是可以避免这种情况的出现,添加用户执行如下命令即可: useradd username -…
[root@localhost mysql]# ./scripts/mysql_install_db  --user=mysql -bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory 貌似提示注释器错误,没有/usr/bin/perl文件或者档案,解决办法(安装perl跟perl-devel即可): 执行  yum -y install perl perl-deve…
-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory python多版本造成额问题 找不到python的路径 所以保持 -查找python#whereis pythonpython: /usr/bin/python /usr/bin/python2.4 /usr/lib/python2.4 /usr/local/bin/python2.7 /usr/local/bin/python /us…
Problem : You are running a 64-bit linux system and trying to compile a 32-bit application and you get this error : /usr/bin/ld: crti.o: No such file: No such file or directory Explainations : Usually crti.o is found in /usr/lib64/ and /usr/lib32/ In…
原因: #!/usr/bin/env python 在ubuntu会变成 #!/usr/bin/env python\r 而\r 会被shell 当成参数 所以出现:  /usr/bin/env: ‘python\r’: No such file or directory 解决方法: vi 此文件 输入:set  ff=unix 再输入:wq 保存 运行成功.…
安装 MySQL 初始化时,报错如下: [root@hcdb1 ~]# /usr/local/mysql/scripts/mysql_install_db --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/data/mysql/3307/data --user=mysql -bash: /usr/local/mysql/scripts/mysql_install_db: /usr/bin/perl: bad int…
以前在安装python 双版本时将python改为了python2所以找不到python,打开那个echo_supervised_conf然后把 #!/usr/bin/python 改为如图就可以了…
有一段时间没有用pod了,突然报了个这种错误,查了下,原来是没有更新pod, 1,更新gem:sudo gem update --system 2,查看gem源是否是最新的:gem sources -l 3,升级cocoapods:sudo gem install -n /usr/local/bin cocoapods --pre 4,查看升级后的cocoapods版本:pod --version 我是直接更新了下,然后就可以使用了,至于用不用更换镜像,这个我没尝试过,上面的步骤已经解决了我的问…