红联Linux门户
Linux帮助

========= Linux答疑专帖 ========= 请把你的问题发到这里!

发布时间:2006-09-01 10:33:22来源:红联作者:苏小小
大家好。 最近刚来这里注册。 主要是潜水,有的时候也浮上来回答一下大家的问题。

由于大家的问题比较分散, 为了更好的给大家服务, 所以特开设Linux答疑专帖


请大家把问题回复在本帖下面。 我如果不出差的话会一天上来两次给大家解答。

问问题的时候请 写清楚所用linux版本,出现故障现象和屏幕显示。

回答范围:Linux 安装, 使用, 其他应用, 系统和网络管理, 存储,和系统相关的数据库,编程开发

无法回答的问题:嵌入式Linux 数据库本身的问题

本帖子已经有了一定的长度, 包含的内容也开始多了。 建议大家在发新问题前先搜索一下已经有的帖子,然后再发问

[ 本帖最后由 苏小小 于 2006-9-27 14:16 编辑 ]
文章评论

共有 559 条评论

  1. Storedata 于 2007-06-17 12:21:11发表:

    只能重装了,要不你在图形界面里看看系统语言那里有没有得换

  2. 金青 于 2007-06-16 16:37:54发表:

    另外,有没有交流群啊~论坛回复太慢~:0)1

  3. 金青 于 2007-06-16 16:30:21发表:

    新人报道~研究了一天多资料,终于安装上了红旗5.0,但有个问题~用虚拟机安装的LINUX是不是只有用虚拟机的时候才能启动他,如果是这样的话,我还是去换个刻录光驱或者买张安装盘吧:victory: :victory:

  4. 幽岭居士 于 2007-06-14 16:16:13发表:

    请问我的红旗5.0NE为什么不能挂载移动硬盘?U盘却能挂载。谢谢。

  5. o-o-o-o88 于 2007-06-14 13:21:24发表:

    我装了一个xp和一个FC6,默认启动的是FC6,要怎么解决能在启动过程中出现选项呢,让我可以选择进入xp还是FC6,各位知道的请不吝赐教,谢谢

  6. chengjianhua_86 于 2007-06-10 13:15:49发表:

    我在windows xp 中装了虚拟机 virtual PC,而又在virtual PC中装了个 DOS 操作系统,然后我把一段在windows xp下用 nasm 编译的汇编代码通过文件共享的方式在 DOS 中运行,但是会报错,后来经过检查发现当去掉其中的 lgdt 指令后程序能得到正确的结果,而一旦加上 lgdt 指令 DOS 就会报这个错:
    EMM386: Unrecoverable privileged operation error #"9 - press ENTER to reboot
    然后我按 ENTER 键也没用,也返回不了 DOS ,最后只能重启。

    我百思不得其解,所以只好求助于各位了。 :time:1 :time:1

  7. spkpy 于 2007-06-06 12:35:07发表:

    小弟一直有一个问题搞不明白,希望帮帮我,我安装的是红旗linux5.0 系统开机有三种启动方式让我选择,我一直搞不明白他们有什么区别,同时只有最后一个才能启动,其他刚启动就报错,请高手给我解释一下这三种的区别,小弟将万分感谢!
    red flag workstation release 5.0 (2.6.9-11.19WS_icc)
    red flag workstation release 5.0 (2.6.9-11.19WSsmp)
    red flag workstation release 5.0 (2.6.9-11.19WS)

  8. tiger2000 于 2007-06-06 10:02:55发表:

    RH linux9.0中显示器分辨率设置1024x768问题。我搜过,是个困扰无数人的问题,有高人帮忙解决或类似问题得以解决的吗?

    偶的主板为硕泰克、集成显卡,Intel 82845GE,显示器是杂牌的17纯平(HuiPu Science),装了linux9.0之后显示器分辨率为800x600,显卡驱动设置正常,想将分辨率调到1024x768,确认保存后提示我重启生效,但设置、重启过N次问题依旧。
    在Winxp下显示分辨率正常为1024x768,刷新率可以上到85HZ.
    在网上搜过很多别人提及的解决方法,尝试过包括在Xfee86.conf的Modes中增加"1024x768",还有将XF86Config的HorizSync和VertRefresh值改为30-60、40-100等等方法均无结果。
    我想这总不会是RH linux9.0本身的问题?亦不该是根本就不能解决的问题吧?
    希望能有解决过此问题的高人指点一下,最好能将步骤详细一点。如果你能帮到偶们,那你就替社会多做了份贡献啦。先谢了。

  9. 天涯海客 于 2007-06-03 17:33:50发表:

    我的问题解决了.原来是Ubuntu默认安装时有些头文件没有安装.安装了需要的头文件之后终于可以上网了

  10. pfcrow 于 2007-06-03 00:58:50发表:

    我用vmware装的redhat9,安装的语言是中文,现在想换英文,又不想重装系统,有什么办法吗?
    望各位大虾赐教!!

  11. yiguoshenzu 于 2007-06-01 14:38:39发表:

    kernel panic : Attempted to kill init !

    这是我装好linux后开机时出现的字,之后就一直进不去了,请问什么原因啊。。。

  12. i_wuli 于 2007-05-30 13:08:08发表:

    为什么我装好了 红旗Linxu后启动时会出现
    Red flag desktop 5.0
    kernel 2.6.9-5.34dt on an i686
    init:Id"x" respawning too fast: disabled for 5 minutes
    这是什么意思啊~〉。。。

  13. snowflower 于 2007-05-29 10:06:40发表:

    顶一下

  14. liandy 于 2007-05-24 22:25:19发表:

    我想问一下fc6.0下如何挂载NTFS文件系统,谢谢

  15. weixin1102 于 2007-05-24 20:32:01发表:

    配置了第二块网卡文件名为eth1重启服务时出现:
    usage:grep [option... pattern file]...
    try 'grep --help' for more information
    Not enough of information:*dev* argument is required.
    如何解决这个问题,帮我一下,谢谢

  16. vinson825 于 2007-05-24 16:14:07发表:

    我用VMware Workstation装的ubuntu-7.04-alternate。虚拟机的音频设置是:use default host sound

    adapter。可是虚拟系统听不到声音,并且虚拟系统每次开启关闭后,主机也都会没有声音。请教如何解

    决啊?谢谢。

  17. 天涯海客 于 2007-05-22 19:37:11发表:

    关于Ububtu 7.04下Drcom的使用问题
    我在Ubuntu 7.04下无法编译drcom-1.3.2
    每次编译都回提示以下错误:
    make -C drcomc
    make[1]: Entering directory `/home/pushboy/Desktop/drcom-1.3.2/drcomc'
    gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/home/pushboy/Desktop/drcom-1.3.2/include -O2 -c -o drcomc.o drcomc.c
    drcomc.c:1:19: 错误: stdio.h:No such file or directory
    drcomc.c:2:20: 错误: string.h:No such file or directory
    drcomc.c:3:20: 错误: stdlib.h:No such file or directory
    drcomc.c:4:20: 错误: stdint.h:No such file or directory
    drcomc.c:5:20: 错误: unistd.h:No such file or directory
    drcomc.c:6:23: 错误: sys/types.h:No such file or directory
    drcomc.c:7:24: 错误: sys/socket.h:No such file or directory
    drcomc.c:8:20: 错误: sys/un.h:No such file or directory
    在包含自 drcomc.c:11 的文件中:
    /home/pushboy/Desktop/drcom-1.3.2/include/client_daemon.h:5:18: 错误: time.h:No such file or directory
    In file included from drcomc.c:11:
    /home/pushboy/Desktop/drcom-1.3.2/include/client_daemon.h:15: 错误: expected specifier-qualifier-list before ‘uint16_t’
    /home/pushboy/Desktop/drcom-1.3.2/include/client_daemon.h:17: 警告: 结构体没有成员
    drcomc.c: 在函数 ‘main’ 中:
    drcomc.c:27: 错误: ‘un_daemon’ 的存储大小未知
    drcomc.c:33: 警告: 隐式声明函数 ‘strcmp’
    drcomc.c:44: 警告: 隐式声明函数 ‘memset’
    drcomc.c:44: 警告: 隐式声明与内建函数 ‘memset’ 不兼容
    drcomc.c:44: 错误: ‘sizeof’ 不能用于不完全的类型 ‘struct sockaddr_un’
    drcomc.c:45: 错误: ‘AF_UNIX’ 未声明 (在此函数内第一次使用)
    drcomc.c:45: 错误: (即使在一个函数内多次出现,每个未声明的标识符在其
    drcomc.c:45: 错误: 所在的函数内只报告一次。)
    drcomc.c:47: 警告: 隐式声明函数 ‘strncpy’
    drcomc.c:47: 警告: 隐式声明与内建函数 ‘strncpy’ 不兼容
    drcomc.c:52: 警告: 隐式声明函数 ‘socket’
    drcomc.c:52: 错误: ‘PF_UNIX’ 未声明 (在此函数内第一次使用)
    drcomc.c:52: 错误: ‘SOCK_STREAM’ 未声明 (在此函数内第一次使用)
    drcomc.c:55: 警告: 隐式声明函数 ‘perror’
    drcomc.c:56: 警告: 隐式声明函数 ‘exit’
    drcomc.c:56: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
    drcomc.c:56: 错误: ‘EXIT_FAILURE’ 未声明 (在此函数内第一次使用)
    drcomc.c:61: 警告: 隐式声明函数 ‘connect’
    drcomc.c:65: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
    drcomc.c:75: 错误: ‘struct drcomcd_hdr’ 没有名为 ‘signature’ 的成员
    drcomc.c:76: 错误: ‘struct drcomcd_hdr’ 没有名为 ‘type’ 的成员
    drcomc.c:80: 警告: 隐式声明函数 ‘memcpy’
    drcomc.c:80: 警告: 隐式声明与内建函数 ‘memcpy’ 不兼容
    drcomc.c:85: 警告: 隐式声明函数 ‘send’
    drcomc.c:96: 警告: 隐式声明函数 ‘recv’
    drcomc.c:99: 错误: ‘struct drcomcd_hdr’ 没有名为 ‘signature’ 的成员
    drcomc.c:104: 警告: 隐式声明函数 ‘printf’
    drcomc.c:104: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
    drcomc.c:112: 错误: ‘struct drcomcd_hdr’ 没有名为 ‘signature’ 的成员
    drcomc.c:113: 错误: ‘struct drcomcd_hdr’ 没有名为 ‘type’ 的成员
    drcomc.c:135: 错误: ‘struct drcomcd_hdr’ 没有名为 ‘signature’ 的成员
    drcomc.c:140: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
    drcomc.c:148: 错误: ‘struct drcomcd_hdr’ 没有名为 ‘signature’ 的成员
    drcomc.c:149: 错误: ‘struct drcomcd_hdr’ 没有名为 ‘type’ 的成员
    drcomc.c:173: 错误: ‘struct drcomcd_hdr’ 没有名为 ‘signature’ 的成员
    drcomc.c:178: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
    drcomc.c:186: 警告: 隐式声明函数 ‘close’
    drcomc.c:27: 警告: 未使用的变量 ‘un_daemon’
    drcomc.c: 在函数 ‘usage’ 中:
    drcomc.c:193: 警告: 隐式声明函数 ‘puts’
    drcomc.c:201: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
    drcomc.c:201: 错误: ‘EXIT_FAILURE’ 未声明 (在此函数内第一次使用)
    drcomc.c: 在函数 ‘print_result’ 中:
    drcomc.c:211: 错误: ‘struct drcomcd_hdr’ 没有名为 ‘type’ 的成员
    drcomc.c:213: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
    drcomc.c:214: 错误: ‘EXIT_SUCCESS’ 未声明 (在此函数内第一次使用)
    drcomc.c:218: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
    drcomc.c:220: 错误: ‘EXIT_FAILURE’ 未声明 (在此函数内第一次使用)
    make[1]: *** [drcomc.o] 错误 1
    make[1]: Leaving directory `/home/pushboy/Desktop/drcom-1.3.2/drcomc'
    make: *** [drcomc] 错误 2

    但我在Magic Linux 2下却可以顺利编译、安装。:time:1 :time:1

  18. Zane.Xie 于 2007-05-21 19:20:16发表:

    How to setup ! No Sound

  19. sophomorezkj 于 2007-05-20 07:23:50发表:

    安装SUSE linux10.2的第三张光盘时,失败。弹出消息:
    packge gimp_help_0.9_45 fails integrity check,do you want to retry downloading it?
    然后安装失败,我是用迅雷下载的ISO镜象文件,然后刻录的光盘.
    在媒体检查中显示 cd3已经损坏.但光盘中显示有这个文件.
    应该怎么办?
    请指点一下,谢谢!

    [ 本帖最后由 sophomorezkj 于 2007-5-20 07:26 编辑 ]

  20. sxtywysl 于 2007-05-18 16:46:14发表:

    请教一下:启动集群时,ORACLE可以切换,但应用不行.

    我用两台PC ,插两张adaptac的SCSI卡连一台EDI 的磁盘阵列,装的REDHAT AS3 U4操作系统和 RHEL3-RHCS集群软件.在阵列上装ORACLE和TOMCAT应用,两台服务器上配置相同.本地IP 192.168.189.135 ,另一台IP 192.168.189.134


    单加入ORACLE包后,双机可以切换,当加入TOMCAT应用的包后,无论是否有ORACLE的包加在集群软件中,双机软件中应用启动失败.


    TOMCAT应用装在/duanxin目录下, 在/dev/sda6设备上.


    集群软件配置TOMCAT包时,设备是/dev/sda6 挂载点是/duanxin 文件系统是ext3 ip 地址是192.168.189.127 255.255.255.0 192.168.189.255


    脚本文件是/home/ismg1/tomcat5028.sh
    #!/bin/sh
    #
    #Cluster service script to start stop and check status of tomcat
    #
    cd /home/ismg1
    case $1 in
    start)
    su - ismg1 -c /home/ismg1/startup.sh
    ;;
    stop)
    su - ismg1 -c /home/ismg1/shutdown.sh
    ;;
    esac




    启动脚本是/home/ismg1/startup.sh
    #!/bin/sh
    # -----------------------------------------------------------------------------
    # Start Script for the CATALINA Server
    #
    # $Id: startup.sh,v 1.3 2002/08/04 18:19:43 patrickl Exp $
    # -----------------------------------------------------------------------------

    # resolve links - $0 may be a softlink
    PRG="$0"

    while [ -h "$PRG" ] ; do
    ls=`ls -ld "$PRG"`
    link=`expr "$ls" : '.*-> \(.*\)$'`
    if expr "$link" : '.*/.*' > /dev/null; then
    PRG="$link"
    else
    PRG=`dirname "$PRG"`/"$link"
    fi
    done

    PRGDIR=`dirname "$PRG"`
    EXECUTABLE=catalina.sh

    # Check that target executable exists
    if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
    echo "Cannot find $PRGDIR/$EXECUTABLE"
    echo "This file is needed to run this program"
    exit 1
    fi

    exec "$PRGDIR"/"$EXECUTABLE" start "$@"



    日志信息是

    May 17 13:08:50 test clumanager: [4121]: Starting Red Hat Cluster Manager...
    May 17 13:08:50 test kernel: Software Watchdog Timer: 0.05, timer margin: 60 sec
    May 17 13:08:50 test clumanager: Loading Watchdog Timer (softdog): succeeded
    May 17 13:08:50 test cludb[4138]: _clu_lock_init: unable to get local member ID
    May 17 13:08:50 test cludb[4139]: _clu_lock_init: unable to get local member ID
    May 17 13:08:50 test cludb[4140]: _clu_lock_init: unable to get local member ID
    May 17 13:08:50 test cludb[4141]: _clu_lock_init: unable to get local member ID
    May 17 13:08:50 test cludb[4142]: _clu_lock_init: unable to get local member ID
    May 17 13:08:50 test clumanager: cluquorumd startup succeeded
    May 17 13:08:50 test cluquorumd[4151]: STONITH: No drivers configured for host '192.168.189.135'!
    May 17 13:08:50 test cluquorumd[4151]: STONITH: Data integrity may be compromised!
    May 17 13:08:50 test cluquorumd[4151]: STONITH: No drivers configured for host '192.168.189.134'!
    May 17 13:08:50 test cluquorumd[4151]: STONITH: Data integrity may be compromised!
    May 17 13:09:01 test clumembd[4155]: Member 192.168.189.135 UP
    May 17 13:09:02 test cluquorumd[4151]: Quorum Formed; Starting Service Manager
    May 17 13:09:02 test clusvcmgrd[4185]: Overwriting shared configuration during boot.
    May 17 13:09:02 test cluquorumd[4151]: STONITH: No drivers configured for host '192.168.189.135'!
    May 17 13:09:02 test cluquorumd[4151]: STONITH: Data integrity may be compromised!
    May 17 13:09:02 test cluquorumd[4151]: STONITH: No drivers configured for host '192.168.189.134'!
    May 17 13:09:02 test cluquorumd[4151]: STONITH: Data integrity may be compromised!
    May 17 13:09:02 test clusvcmgrd: [4186]: service notice: Stopping service tomcat ...
    May 17 13:09:02 test clusvcmgrd: [4186]: service notice: Running user script '/home/ismg1/tomcat5028.sh stop'
    May 17 13:09:02 test su(pam_unix)[4215]: session opened for user ismg1 by (uid=0)
    May 17 13:09:02 test su(pam_unix)[4215]: session closed for user ismg1
    May 17 13:09:02 test clusvcmgrd: [4186]: service error: User script '/home/ismg1/tomcat5028.sh stop' returned error 1
    May 17 13:09:02 test clusvcmgrd: [4186]: service error: Cannot stop user script for tomcat
    May 17 13:09:02 test clusvcmgrd[4261]: Starting stopped service tomcat
    May 17 13:09:02 test clusvcmgrd: [4262]: service notice: Starting service tomcat ...
    May 17 13:09:03 test kernel: kjournald starting. Commit interval 5 seconds
    May 17 13:09:03 test kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,6), internal journal
    May 17 13:09:03 test kernel: EXT3-fs: recovery complete.
    May 17 13:09:03 test kernel: EXT3-fs: mounted filesystem with ordered data mode.
    May 17 13:09:03 test clusvcmgrd: [4262]: service notice: Running user script '/home/ismg1/tomcat5028.sh start'
    May 17 13:09:03 test su(pam_unix)[4458]: session opened for user ismg1 by (uid=0)
    May 17 13:09:03 test su(pam_unix)[4458]: session closed for user ismg1
    May 17 13:09:03 test clusvcmgrd: [4262]: service error: User script '/home/ismg1/tomcat5028.sh start' returned error 1
    May 17 13:09:03 test clusvcmgrd: [4262]: service error: Cannot start user script for tomcat
    May 17 13:09:03 test clusvcmgrd: [4503]: service notice: Stopping service tomcat ...
    May 17 13:09:03 test clusvcmgrd: [4503]: service notice: Running user script '/home/ismg1/tomcat5028.sh stop'
    May 17 13:09:03 test su(pam_unix)[4532]: session opened for user ismg1 by (uid=0)
    May 17 13:09:03 test su(pam_unix)[4532]: session closed for user ismg1
    May 17 13:09:03 test clusvcmgrd: [4503]: service error: User script '/home/ismg1/tomcat5028.sh stop' returned error 1
    May 17 13:09:03 test clusvcmgrd: [4503]: service error: Cannot stop user script for tomcat
    May 17 13:09:03 test clusvcmgrd[4261]: Service 0 failed to stop cleanly
    May 17 13:11:49 test clusvcmgrd[4619]: Service tomcat has failed on all applicable members; can not start.
    May 17 13:11:49 test clusvcmgrd[4619]: Relocating failed service 0
    May 17 13:11:49 test clusvcmgrd: [4620]: service notice: Stopping service tomcat ...
    May 17 13:11:49 test clusvcmgrd: [4620]: service notice: Running user script '/home/ismg1/tomcat5028.sh stop'
    May 17 13:11:49 test su(pam_unix)[4649]: session opened for user ismg1 by (uid=0)
    May 17 13:11:49 test su(pam_unix)[4649]: session closed for user ismg1
    May 17 13:11:49 test clusvcmgrd: [4620]: service error: User script '/home/ismg1/tomcat5028.sh stop' returned error 1
    May 17 13:11:49 test clusvcmgrd: [4620]: service error: Cannot stop user script for tomcat
    May 17 13:11:56 test modprobe: modprobe: Can't locate module sound-slot-0
    May 17 13:11:56 test modprobe: modprobe: Can't locate module sound-service-0-3
    May 17 13:11:59 test shutdown: shutting down for system halt



    另外 停止脚本是

    /home/ismg1/shutdown.sh

    #!/bin/sh
    # -----------------------------------------------------------------------------
    # Stop script for the CATALINA Server
    #
    # $Id: shutdown.sh,v 1.3 2002/08/04 18:19:43 patrickl Exp $
    # -----------------------------------------------------------------------------

    # resolve links - $0 may be a softlink
    PRG="$0"

    while [ -h "$PRG" ] ; do
    ls=`ls -ld "$PRG"`
    link=`expr "$ls" : '.*-> \(.*\)$'`
    if expr "$link" : '.*/.*' > /dev/null; then
    PRG="$link"
    else
    PRG=`dirname "$PRG"`/"$link"
    fi
    done

    PRGDIR=`dirname "$PRG"`
    EXECUTABLE=catalina.sh

    # Check that target executable exists
    if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
    echo "Cannot find $PRGDIR/$EXECUTABLE"
    echo "This file is needed to run this program"
    exit 1
    fi

    exec "$PRGDIR"/"$EXECUTABLE" stop "$@"



    非常感谢您!

  21. flytocity 于 2007-05-17 16:08:09发表:

    fsck修复硬盘是否需要卸载


    在一个项目中,需要用fsck.ext2 -y /dev/sda。请教高手,是否需要卸载了才能修复,硬盘上有很重要的问题,如果不需要卸载,那修复的过程中,同时读写可以吗?请高手多多指点,巨感谢!

  22. anddylf 于 2007-05-16 08:32:48发表:

    四个分区C\D\E\F,虚拟机安装在F盘,安装虚拟机之前已经被格式化。安装前几步都进行得比较顺利,但是到分区的时候却出现错误了,下面是分区前的几幅截图

    图1、我的分区情况

    http://hi.baidu.com/%C7%E5%D0%C4%D1%C5%C9%E1/album/item/24e052163a970b4f20a4e9b2.html
    图2、新建一个分区的设置情况

    http://hi.baidu.com/%C7%E5%D0%C4%D1%C5%C9%E1/album/item/fb395e4a7911022609f7efb2.html
    图3、错误提示


    不知道为什么不能分区呢?望解答!:time:1

  23. heinj 于 2007-05-12 14:55:48发表:

    我安装的是ubuntu 6.06,在安装系统的时候,好像显示过DHCP配置成功,而且安装过程中好像有从网络下载的迹象。系统安装顺利,但就是不能上网。
    我运行了PPPOECONF命令,提示找到ETH0和1,继续后提示:
    siocsifflags:没有那个文件或目录
    sendpacket:send:Netork is down
    这是什么问题

  24. mayichao 于 2007-05-11 22:26:41发表:

    这里是学习和交流的地方,希望大家要利用好这里平台!
    我平时不太喜欢在学校的BBS上发文章的,但喜欢上这里了!:time:1

  25. sxtywysl 于 2007-05-11 20:26:13发表:

    求助---双机碰到的怪问题

    求助于各位: 我用两台PC SERVER连一台EDI 的 磁盘阵列,装的REDHAT AS3 U4操作系统和 RHEL3-RHCS集群软件.在阵列上装ORACLE,在两台服务器上装TOMCAT应用,两台服务器上配置相同.


    单加入ORACLE包后,双机可以切换,当加入TOMCAT应用的包后,无论是否有ORACLE的
    包加在集群软件中,当启动双机软件时,LINUX 都会自动重启,从而双机软件启动失败.


    TOMCAT应用装在/usr/ismg目录下,/usr是/dev/hda5设备的挂载点.


    集群软件配置TOMCAT包时,设备是/dev/hda5 挂载点是/usr 文件系统是ext3 ip 地址是
    192.168.189.127 255.255.255.0 192.168.189.255


    脚本文件是/usr/ismg/support/tomcat5028/bin/tomcat5028.sh
    #!/bin/sh
    #
    #Cluster service script to start stop and check status of tomcat
    #
    cd /usr/ismg/support/tomcat5028/bin
    case $1 in
    start)
    su - ismg -c /usr/ismg/support/tomcat5028/bin/startup.sh
    ;;
    stop)
    su - ismg -c /usr/ismg/support/tomcat5028/bin/shutdown.sh
    ;;
    esac




    启动脚本是/usr/ismg/support/tomcat5028/bin/startup.sh
    #!/bin/sh
    # -----------------------------------------------------------------------------
    # Start Script for the CATALINA Server
    #
    # $Id: startup.sh,v 1.3 2002/08/04 18:19:43 patrickl Exp $
    # -----------------------------------------------------------------------------

    # resolve links - $0 may be a softlink
    PRG="$0"

    while [ -h "$PRG" ] ; do
    ls=`ls -ld "$PRG"`
    link=`expr "$ls" : '.*-> \(.*\)$'`
    if expr "$link" : '.*/.*' > /dev/null; then
    PRG="$link"
    else
    PRG=`dirname "$PRG"`/"$link"
    fi
    done

    PRGDIR=`dirname "$PRG"`
    EXECUTABLE=catalina.sh

    # Check that target executable exists
    if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
    echo "Cannot find $PRGDIR/$EXECUTABLE"
    echo "This file is needed to run this program"
    exit 1
    fi

    exec "$PRGDIR"/"$EXECUTABLE" start "$@"



    日志信息是

    May 11 20:06:33 test gdm(pam_unix)[3600]: session opened for user root by (uid=0)
    May 11 20:06:36 test gconfd (root-3996): 正在启动(版本 2.2.1),pid 3996 用户“root”
    May 11 20:06:36 test gconfd (root-3996): 解析的地址“xml:readonly:/etc/gconf/gconf.xml.mandatory”指向位于 0 的只读配置源
    May 11 20:06:36 test gconfd (root-3996): 地址“xml:readwrite:/root/.gconf”解析
    为位于 1 的可写入配置源
    May 11 20:06:36 test gconfd (root-3996): 解析的地址“xml:readonly:/etc/gconf/gconf.xml.defaults”指向位于 2 的只读配置源
    May 11 20:06:39 test kernel: ide-floppy driver 0.99.newide
    May 11 20:06:40 test kernel: hdc: attached ide-cdrom driver.
    May 11 20:06:40 test kernel: hdc: ATAPI 48X CD-ROM drive, 128kB Cache, UDMA(33)
    May 11 20:06:40 test kernel: Uniform CD-ROM driver Revision: 3.12
    May 11 20:06:41 test kernel: cdrom: This disc doesn't have any tracks I recognize!
    May 11 20:09:11 test clumanager: [4091]: Starting Red Hat Cluster Manager...
    May 11 20:09:11 test kernel: Software Watchdog Timer: 0.05, timer margin: 60 secMay 11 20:09:11 test clumanager: Loading Watchdog Timer (softdog): succeeded
    May 11 20:09:11 test cludb[4108]: _clu_lock_init: unable to get local member ID
    May 11 20:09:11 test cludb[4109]: _clu_lock_init: unable to get local member ID
    May 11 20:09:11 test cludb[4110]: _clu_lock_init: unable to get local member ID
    May 11 20:09:11 test cludb[4111]: _clu_lock_init: unable to get local member ID
    May 11 20:09:11 test cludb[4112]: _clu_lock_init: unable to get local member ID
    May 11 20:09:11 test clumanager: cluquorumd startup succeeded
    May 11 20:09:12 test cluquorumd[4121]: STONITH: No drivers configured
    for host '192.168.189.135'!
    May 11 20:09:12 test cluquorumd[4121]: STONITH: Data integrity may be
    compromised!
    May 11 20:09:12 test cluquorumd[4121]: STONITH: No drivers configured
    for host '192.168.189.134'!
    May 11 20:09:12 test cluquorumd[4121]: STONITH: Data integrity may be
    compromised!
    May 11 20:09:22 test clumembd[4125]: Member 192.168.189.135 UP
    May 11 20:09:23 test cluquorumd[4121]: Quorum Formed; Starting Service
    Manager
    May 11 20:09:23 test clusvcmgrd: [4156]: service notice: Stopping service tomcat ...
    May 11 20:09:23 test clusvcmgrd: [4156]: service notice: Running user script '/usr/ismg/support/tomcat5028/bin/tomcat5028.sh stop'
    May 11 20:09:23 test su(pam_unix)[4185]: session opened for user ismg by (uid=0)May 11 20:09:29 test su(pam_unix)[4185]: session closed for user ismg
    May 11 20:09:29 test clusvcmgrd: [4156]: service warning: Device /dev/hda5 is mounted on /usr instead of /usr/ismg
    May 11 20:09:30 test gdm(pam_unix)[3600]: session closed for user root
    May 11 20:09:30 test apmd[3362]: Exiting
    May 11 20:09:30 test cluquorumd[4121]: Lock manager missing; restarting!
    May 11 20:09:30 test gdm[3600]: gdm_slave_xioerror_handler:致命的 X 错误 - 正在重新开始 :0
    May 11 20:09:30 test gconfd (root-3996): 已接收到信号 15,正在干净地关闭
    May 11 20:09:30 test gconfd (root-3996): 退出
    May 11 20:09:31 test cluquorumd[4121]: Lost connection to membership: REBOOTING NOW


    非常感谢!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

  26. strawman919 于 2007-05-10 23:24:52发表:

    我有几个问题自己无法解决:
    1.安装samba服务的问题,我配置好了smb.conf 共享了目录/soft 我在根目录建了soft文件夹 (里面放了一个RPM软件包)
    全局的设置没写出来
    [soft]
    comment = linux soft
    path = /soft
    valid users = root admin
    browsable = yes
    public = no
    writables = yes
    create mask = 0644
    我可以在windows 下访问 soft目录,但是看不见我放的RPM包,可以看见test.txt文件。 我共享了windows下G盘的temp文件夹, 在linux下无法挂装 这个文件夹 提示信息 无法识别smbfs文件类型。

    2.我用df 查看磁盘情况看见有一个tmpfs 的挂装点
    tmpfs 125M /dev/shm
    我想问一下这个是什么?

  27. wangyanfeng52 于 2007-05-08 16:46:59发表:

    我安装的是redhat9 和win xp双系统,并且在redhat9中安装了wine,在win xp中安装了藏文输入法,我想在linux下通过wine安装藏文输入法,但无法安装,也无提示,请各位高人给指点一下,我不胜感激。

  28. wangyanfeng52 于 2007-05-08 16:46:36发表:

    我的网卡型号是:Intel(R) PRO/1000 MT Network connection,电脑装了redhat9 和xp双系统,在xp下上网正常,但是在linux下检测不到网卡,请问我该如何配置才能在Linxu下正常上网呢,请大家伸出援助之手,谢谢。还要补充一点,我配置网卡时选择了e1000,但是激活时出现提示“E1000 device eth0 does not seem to be present,delaying initialization”

  29. PureBlue 于 2007-05-08 13:02:55发表:

    锟斤拷锟斤拷:
    原帖由 habaogouriei 于 2007-4-28 21:11 发表
    我安装到选择自动分区和手动分区时,我选手动分区后出现“未找到要在其中创建新文件系统的有效设备,。。。。。”
    然都就重新启动了
    请问是什么意思?

    这是硬盘不兼容的提示,用最新的版本就可以解决了,如FC6或是ubuntu7.04,一般目前在2006年底起的版本都应该可以兼容到的

  30. PureBlue 于 2007-05-08 13:02:00发表:

    锟斤拷锟斤拷:
    原帖由 zhrzzzzz 于 2007-4-17 02:11 发表
    我想用redhat AS 4做文件服务器,是用图形界面还是用文字界面的好?

    图形文本都可以,如果想要效率一些的就用文本,不过文本配置有些麻烦,而且要有一定的shell知识来操作

  31. PureBlue 于 2007-05-08 13:00:31发表:

    听说是中标Linux公司的高手,也是个linux培训师呀

  32. PureBlue 于 2007-05-08 12:59:41发表:

    用setup重新配置下,图解看这。http://www.linuxdiyf.com/viewarticle.php?id=22018

  33. PureBlue 于 2007-05-08 12:58:33发表:

    就是格式化成windows下的支持格式了,这个可以在重装windows时把linux分区格也可以现在格,这个很多资料,搜索下就有了

  34. PureBlue 于 2007-05-08 12:57:00发表:

    键盘选择美国英语式的,即u.s.english

  35. strawman919 于 2007-05-07 20:35:07发表:

    我有几个问题自己无法解决:
    1.安装samba服务的问题,我配置好了smb.conf 共享了目录/soft 我在根目录建了soft文件夹 (里面放了一个RPM软件包)
    全局的设置没写出来
    [soft]
    comment = linux soft
    path = /soft
    valid users = root admin
    browsable = yes
    public = no
    writables = yes
    create mask = 0644
    我可以在windows 下访问 soft目录,但是看不见我放的RPM包,可以看见test.txt文件。 (而且在windows下只能用root帐户访问,我另外建的一个帐户admin就不行有点奇怪。。) 我共享了windows下G盘的temp文件夹, 在linux下无法挂装 这个文件夹 提示信息 无法识别smbfs文件类型。

    2.我用df 查看磁盘情况看见有一个tmpfs 的挂装点
    tmpfs 125M /dev/shm
    我想问一下这个是什么?

  36. zevolz 于 2007-05-05 10:07:09发表:

    :0(1 我刚刚安装了redhat lunix9.03,安装完成后开始启动.进入系统选择菜单.我是用的默认的那个.
    然后进入下面的阶段,全是字符的界面.然后就卡在那里了.一连串字符的最后几行是这样的
    VP_IDE:IDE controller at PCI slot 00:0f.1
    VP_IDE:chipset revision 6
    VP_IDE:not 100% native mode: will probe irps later
    VP_IDE:unknow VIA south bridge disabling DMA
    请问下是怎么回事啊?
    谢谢!

  37. 水木三郎 于 2007-05-02 13:41:30发表:

    在红旗linux下如何重新分配磁盘空间?

    前天下午用正版光盘把红旗linux装上了,可进入windows后发现磁盘总空间少了40G,可我装系统时没给linux分配那么多空间呀?请问各位高手有什么高见呀?我装linux平常用不了那么大空间,太浪费了。帮帮小弟,看看怎么把这多余的空间分配给windows!我的邮箱是fengmiaosen_250007@163.com,谢谢了!

    [ 本帖最后由 水木三郎 于 2007-5-2 13:44 编辑 ]

  38. xup1984 于 2007-05-01 17:03:48发表:

    我装了 红旗5.0 的系统,是用虚拟机安装的。可是装完后一启动,只要选择linux系统就会关机,不知道是怎么回事

  39. jianpx 于 2007-04-30 13:34:23发表:

    请问如何格式化安装了linux的系统的盘呢?我装了windows和fedora双系统。格完后在windows要能用的。谢谢!

  40. jinyuanzhi 于 2007-04-30 09:52:12发表:

    我在 http://www.gnu.org/software/pth/ 下载了pth-1.4.0开发包,

    可是运行 ./configure -prefix=/usr 时,

    总是提示:bash: ./configure: 权限不足

    这是为什么?

    请帮忙 QQ:47393039

    谢谢