• getcwd: cannot access parent directories的解决方法

    日期:

    shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录 chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录 该错误表示 getcwd 命令无法...

  • There is insufficient memory for the Java Runtime Environment to continue问题解决

    日期:

    在linux系统下长时间进行性能测试,连续几次发生服务器假死无法连接上的情况,无奈只能重启服务器。在测试路径下发现hs_err_pid17285.log文件,打开文件查看其主要内容如下: # There is insufficient memory for the Java Runtime Environment to continue....

  • Error, some other host already uses address解决办法

    日期:

    今天同事无法连接他自己的虚拟机了,过去一看,原来是报Error, some other host already uses address错误,换了其他ip还是报这样的错误,还好网上一搜就找到了解决办法.方法如下: 编辑 /etc/sysconfig/network-scripts/ifup-eth,将(注:在Redhat或者centos操作系...

  • yum安装软件报Error: Cannot find a valid baseurl for repo: base

    日期:

    今天使用yum安装软件,出现下面的提示: Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6arch=i386repo=os error was 14: P...

  • linux 的list.h 错误?

    日期:

    link.h里的这几行代码老感觉哪里不对,大神帮忙看一下额 static inline void __list_add(struct list_head *new, struct list_head *prev, struct list_head *next) { next-prev = new; new-next = next; new-prev = prev; prev-next = new; } static inline...

  • Linux下SSH、MySQL连接很慢的解决办法

    日期:

    内网分析服务器跳转到采集服务器 ssh 特别慢,最后网上查找原因解决办法如下: 1、修改/etc/ssh/sshd_config内的 UseDns注释去掉并改为no UseDns no 2、修改本机的客户端配置文件ssh_conf,注意,不是sshd_conf vi /etc/ssh/ssh_conf 找到 GSSAPIAuthenticat...

  • vi /etc/pam.d/sshd 设置登录失败次数后,ssh无法登录

    日期:

    想设置登录失败3次后锁定用户300秒,百度后有大神博客写到vi /etc/pam.d/sshd 限制远程vi /etc/pam.d/login限制tty 在 #%PAM-1.0后面加入 auth requiredpam_tally2.so deny=3lock_time=300 even_deny_root root_unlock_time=300 我直接复制加入后成功实现了。...

  • error while loading shared libraries: libevent-2.0.so.5

    日期:

    今天安装memcache 启动服务时出现 error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory whereis libevent-2.0.so.5 libevent-2.0.so.5: /usr/local/lib/libevent-2.0.so.5 ldd /usr/local...

  • linux下乱码问题总结

    日期:

    linux下出现乱码,一般都是语言和编码的设置有问题,分为以下几种情况。 1. Terminal乱码 用户根目录下创建.bash_profile文件,文件末尾加入以下内容,重新打开terminal即可 export LC_ALL=zh_CN.GBK; export LANG=zh_CN.GBK 注意:命令行输出乱码的,一般都...

  • 取消挂载 umount 时出现的 “Device is busy”

    日期:

    在 Linux 下 umount 挂载的优盘或者移动硬盘的时候,经常会出现 Device is busy 的提示,哦~真让人恼火,在 Windows 下的那个无法卸载移动设备的问题,竟然也窜到了 Linux 下 其实,错误不在 WIndows 也不在 Linux,无法卸载移动设备的原因,是因为系统中还...