寻觅生命中的那一片浅草......

文章带标签 Linux

RHEL5下的Squid

squid装好后,就可以启动了,但其他电脑还不能直接通过这个代理来上网,配置文件里只允许localhost使用这个代理,感觉默认配置文件有点不合理,如果只给本机代理上网,根本没什么意义,或者本机通过本机的代理上网这样更加安全吧?

当你不修改squid.conf,启动squid后,你在另外一台电脑修改浏览器的代理设置,你会得到以下提示

ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://www.baidu.com/

The following error was encountered:
Access Denied.

Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

Your cache administrator is root.


阅读全文»

RHEL5下编译2.6.25.6内核

1、准备工作

去www.kernel.org下载最新版内核,本例中内核版本为2.6.25.6,存放于/usr/src/kernels,因为本例中使用make xconfig进行图形化内核配置,故需要安装相关图形界面用到的文件,以下是本机会用到的文件,这些rpm包在RHEL5光盘Server文件夹下都有

# rpm -ivh lcms-1.15-1.2.2.i386.rpm
# rpm -ivh lcms-devel-1.15-1.2.2.i386.rpm
# rpm -ivh libmng-1.0.9-5.1.i386.rpm
# rpm -ivh qt-3.3.6-20.el5.i386.rpm
# rpm -ivh libXcursor-devel-1.1.7-1.1.i386.rpm
# rpm -ivh libXinerama-devel-1.0.1-2.1.i386.rpm
# rpm -ivh libXrandr-devel-1.1.1-3.1.i386.rpm
# rpm -ivh mesa-libGLU-devel-6.5.1-7.2.el5.i386.rpm
# rpm -ivh qt-devel-3.3.6-20.el5.i386.rpm

阅读全文»

RHEL5下的RAID1

在vmware server 1.0.6下做的,安装好系统后,添加两个scsi硬盘,大小随意,本例中两个硬盘的大小均为512M,因为对RAID不熟悉,所以错漏在所难免,切勿在生产环境中应用。

1、为两块硬盘分区,修改分区类型
# fdisk /dev/sdb
输入以上命令后,输入n,再输入p,1,因为使用整个硬盘,所以后面的默认,直接回车。然后输入t,命令默认选择了第1个,也是这里唯一的一个分区,输入L,可以查看分区的类型,这里输入fd,然后输入w存盘,据RHCE课程,修改分区类型是为了autodetection。

按照以上方法对sdc进行操作。

阅读全文»

Create Logical Volume

是RHCE里面的内容,今天在rhel5上试过,修改了下
The Logical Volume Manager (LVM) enables you to set up one filesystem on
multiple partitions. For example, assume you’re adding more users and are running
out of room in your /home directory. You don’t have any unpartitioned space available
on your current hard disk.
With the LVM, all you need to do is add another hard disk, configure some
partitions, back up /home, and use the LVM tools to combine the new partition and
the one used by /home into a volume set. You may need to install the LVMrpm. Once it
is installed, the steps are fairly straightforward:

阅读全文»

关于rpm包搜索

前天装Oracle,提示缺少一个文件,在网上找了下,有篇文章说,把缺少的文件名放到http://rpmfind.net搜索下,就可以找到你所需要的包了。才知道,做个备忘而已

还有一个:

http://rpm.pbone.net/index.php3/stat/2/simple/2

2025年七月
« 5月    
 123456
78910111213
14151617181920
21222324252627
28293031