项目

一般

简介

Linux 常见问题及解决

范 益波将近 10 年 之前添加

  • Centos 5.x 下装IC5141,遇到如下问题
    1. 现象
      Executing control programs (pre-load) ...
      sort: open failed: +3: No such file or directory
      expr: syntax error
    2. 原因
      CentOS-5.5的tar-1.15.1,sort-5.97,expr-5.97版本过高,需要用tar-1.14,sort-5.2.1,expr-5.2.1才能正常解压安装,而这几个程序可以在CentOS-4.8中找到。
    3. 解决
      bash下之后在终端输入export _POSIX2_VERSION='199209'
  • 启动ICFB时,却抱错
    1. 现象
      error :failed to find either 24-bit TrueColor or 8-bit PseudoColor Visual
    2. 原因
      DefaultDepth 一般是16-bit,而软件要求24-bit
    3. 解决
      1. 方法1:针对单机
        打开 /etc/X11/xorg.conf 文件
        找到这一行 DefaultDepth 16
        把 16 改成 24 可
      2. 方法2:针对VNC登录的服务器
        起vnc的时候要加-depth 24
  • OpenLDAP-Berkeley DB 設定
    1. 原文:http://blog.csdn.net/lucifer821031/article/details/1921293
      #cp /usr/local/etc/openldap/DB_CONFIG.example /var/db/openldap-data/DB_CONFIG
      #vim /var/db/openldap-data/DB_CONFIG
      set_cachesize 0 268435456 1 //設定bdb的cache大小單位為Bytes(所以此例設為256MB)
      set_lg_regionmax 1048576 //設定存於 Memory Cache 大小
      set_lg_max 10485760 //設定資料庫 Log 最大值(/var/db/openldap-data/log.0000000001)
      set_lg_bsize 2097152 //設定資料庫 Log 時 Buffer Cache
      set_lg_dir /var/db/openldap-data //設定資料庫 Log 存放路徑
      
  • "cannot restore segment prot after reloc: Permission denied"
    1. 现象
      error while loading shared libraries: $ORACLE_HOME/lib/libnnz10.so: cannot restore segment prot after reloc: Permission denied
      
    2. 原因
      动态库加载出错,原因是selinux的问题,selinux的设置太过严格导致的。
    3. 解决
      1. chcon -t texrel_shlib_t xxx.so, 或 chcon -t texrel_shlib_t app_lib_path/*.so
      2. 修改/etc/selinux/config 文件, 把SELINUX=enforcing 改成 SELINUX=disabled, 重启