自用centos5.2服务器图文安装篇

2008年9月9日 | 23:41分类:linux | 标签: | 278 views
  1.  centos 5.2安装
  2.  centos 5.2安装
  3.  centos 5.2安装
  4.  centos 5.2安装
  5.  centos 5.2安装
  6.  centos 5.2安装
  7.  centos 5.2安装
  8.  centos 5.2安装
  9.  centos 5.2安装
  10.  centos 5.2安装
  11.  centos 5.2安装
  12.  centos 5.2安装
  13.  centos 5.2安装
  14.  centos 5.2安装
  15.  centos 5.2安装
  16.  centos 5.2安装
  17.  centos 5.2安装
  18.  centos 5.2安装
  19.  centos 5.2安装
  20.  centos 5.2安装
  21.  centos 5.2安装
  22.  centos 5.2安装
  23.  centos 5.2安装
  24.  centos 5.2安装
  25.  centos 5.2安装
  26.  centos 5.2安装
  27.  centos 5.2安装
  28.  centos 5.2安装
  29.  centos 5.2安装
  30.  centos 5.2安装
  31.  centos 5.2安装

使用yum安装本地光盘里的软件

2008年9月9日 | 11:40分类:linux | 标签: | 210 views

首先 要先挂载光盘,把光盘挂载到media/CentOS/,media/cdrom/,或者media/cdrecorder/

使用mount -o loop /home/disk1/os/centos/CentOS-5.2-i386-bin-DVD.iso /media/CentOS/挂载光盘

这样就不用修改配置文件了。如果想挂载到其他目录,只要修改下baseurl=file:///自己挂载的目录,就可以了。配置文件在 /etc/yum.repos.d/CentOS-Media.repo。

接着 把/etc/yum.repos.d/CentOS-Base.repo改下名,命令如下:
#mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
检查下配置文件的有没设置正确,命令如下:

#cat /etc/yum.repos.d/CentOS-Media.repo

# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
#  CentOS-5.  You can use this repo and yum to install items directly off the
#  DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
#  yum –enablerepo=c5-media [command]
#
# or for ONLY the media repo, do this:
#
#  yum –disablerepo=\* –enablerepo=c5-media [command]

[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-beta

最后 就是要安装软件咯,命令如下:

#yum --enablerepo=c5-media install gimp

安装你想要的软件。

利用sysctl工具调整linux核心参数

2008年9月8日 | 16:53分类:linux | 标签: | 133 views

一般情况下,不需要调整Linux核心参数;在一些特定情况下,例如安装oracle数据库或集群网络的时候,就需要适当调整一下核心参数(调整共享内存或信号量参数),以便于系统更好地运行,可以使用系统自带的sysctl工具进行。

sysctl -a    “命令, 通过sysctl机制控制的核心参数的全列表以及当前值一起被显示出来。

sysctl -w net.ipv4.conf.eth0.rp_filter=1 手工修改net.ipv4.conf.eth0.rp_filter参数,

以上改变只影响当前运行的系统内核,当系统重启后恢复原值。要使改变永久有效,增加一个适当的行在/etc/sysctl.conf

文件中,在系统启动的时候通过/etc/init.d/boot.sysctl脚本被执行

SOHO-IP带宽上行速度测试

2008年9月7日 | 18:58分类:生活随笔 | 标签: | 344 views

由上次把家里的路由器升级了一下软体,详细查看此文:

TL-R860通过升级软件使其增加IP带宽控制功能

下午刚好有时间,测试了一下IP带宽控制对上行速度的测试,我的ADSL是上行和下行都是512kbps,(升级后的界面只有一个地方输入带宽数值,对于非对称的ADSL来说,应该是针对于下行速度来控制,假设你申请的是电信的ADSL 2M带宽,下行2M,上行才512Kbps,那么在申请的带宽大小里填写2000Kbps),通过两台电脑分别上传到服务器做测试,如果设置了最大带宽,这上传的速率也是这个最大值,如果设置了最小值,或者未针对此IP最任何设置,那就看抢资源厉害,谁的速度就大,

备注:本结论由于我的刚好是上下行速度都一样,有一定的特殊化。

Pages: Prev 1 2 3 ...20 21 22 23 24 ...89 90 91 Next