初学Linux时遇到的系列问题和解决方案

这篇博客详细记录了初学者在学习Linux过程中遇到的问题及解决方案,涵盖了从VPC安装RHEL时的花屏问题,locate命令无效,到Linux中的Apache、JDK、Tomcat的安装与配置,再到Linux系统的启动过程和中文输入法安装等。此外,还涉及了Apache与Tomcat的整合、Linux系统的负载均衡配置以及常用命令的学习。
摘要由CSDN通过智能技术生成
1、在VPC中安装RHEL,startx时花屏

  说明:这是由于VPC色度不支持(真彩)24色导致的,直接修改为16即可。
  方法:vi /etc/X11/XF86Config | vi /etc/X11/xorg.conf
     Section "Screen"节点
       修改 Depth  16  -- 默认24
          Modes  "1024x768" "800x600" "640x480"

 

2、locate命令无效。

  说明:系统提示“warnning: database '/var/lib/slocate/slocate.db' is more than 8 days old ”。
  方法:updatedb

 

 3、VPC中,间断性的显示:localhost kernel: i8253 count too high! resetting..

  说明:【摘】i8253是计算机内的一个计时器芯片,当使用虚拟机或是某些笔记本安装 linux的时候,系统的时间会不定期的产生一些误差,包括linux在内的很多系统都可以进行纠正这种时间上的混乱。Linux的2.4.20核心以及 更高版本的核心在处理这种时间上的混乱时会同时发送一条Debug信息,这条信息就是i8253 count too high。

  方法:chkconfig pcmcia off,每次开机都运行。

  其它:关闭提示:开机到grub处,按下e键,选择kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ ,在末尾处“空格+single”,然后回车退出,再按b键引导进入单用户模式,在单用户模式下输入chkconfig pcmcia off;消除误差:通过修改源代码arch /i386 /kernel /time.c 文件并重新编译。

 
4、xWindow中文字体乱码。

  说明:桌面linux乱码
  方法:拷贝字体库(从Win系统中获取或网上下载)文件到: /usr/share/fonts/chinese/TrueType/目录。

5、Linux中firefox的安装。(丢弃)

  说明:半天没装上。RPM resource libpangocairo-1.0.so.0
    运行时提示: ./firefox-bin: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory。
    从rpmfind.net下载了pango-1.28.1-5.fc15 RPM for i686,rpm安装后还是老样子。

  方法:faint, 继续安装中。。。(可能是RHEL版本太老的缘故,多数rpm版本不够,装个firefox1,2看看。)
  继续晕,,,装FF到xWindow都进不去:
/usr/bin/gnome-session: error while loading shared libraries: libXinerama.so.1: cannot open shared object file : No such file or directory

Firefox 3.6 System Requirements 

Please note that Linux distributors may provide packages for your distribution which have different requirements.

  • Firefox will not run at all without the following libraries or packages:
    • GTK+ 2.10 or higher
    • GLib 2.12 or higher
    • Pango 1.14 or higher
    • X.Org 1.0 or higher
  • For optimal functionality, we recommend the following libraries or packages:
    • NetworkManager 0.7 or higher
    • DBus 1.0 or higher
    • HAL 0.5.8 or higher
    • GNOME 2.16 or higher
6、Apache的安装

  说明:

  方法: ./configure --sysconfdir=/etc/httpd --datadir=/usr/local/apache2/httpd --enable-modules=most --enable-mods-shared=all --enable-so
  (Fault:  no acceptable C compiler found in $PATH)
  # 要安装 GCC
  # install gcc-x

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值