12C安装及本地YUM源配置

检查系统环境

uname

Hostname

Vi /etc/hosts加上IP 主机名

关闭防火墙

[root@linux-6-64 Desktop]# vi/etc/selinux/config

SELINUX=disabled

[root@linux-6-64 Desktop]# service iptablesstop

iptables: Flushing firewall rules: [ OK ]

iptables: Setting chains to policy ACCEPT:filter [ OK ]

iptables: Unloading modules: [ OK ]

[root@linux-6-64 Desktop]# serviceip6tables stop

ip6tables: Flushing firewall rules: [ OK ]

ip6tables: Setting chains to policy ACCEPT:filter [ OK ]

ip6tables: Unloading modules: [ OK ]


修改系统参数:vi /etc/sysctl.conf

kernel.shmall = 4294967296

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 2097152

kernel.shmmax = 536870912

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048586

使其立即生效:[root@linux-6-64 Desktop]# /sbin/sysctl -p

安装rpm包

需要的rpm包如下:

binutils-2.20.51.0.2-5.11.el6 (x86_64)

compat-libcap1-1.10-1 (x86_64)

compat-libstdc++-33-3.2.3-69.el6 (x86_64)

compat-libstdc++-33-3.2.3-69.el6 (i686)

gcc-4.4.4-13.el6 (x86_64)

gcc-c++-4.4.4-13.el6 (x86_64)

glibc-2.12-1.7.el6 (i686)

glibc-2.12-1.7.el6 (x86_64)

glibc-devel-2.12-1.7.el6 (x86_64)

glibc-devel-2.12-1.7.el6 (i686)

ksh

libgcc-4.4.4-13.el6 (i686)

libgcc-4.4.4-13.el6 (x86_64)

libstdc++-4.4.4-13.el6 (x86_64)

libstdc++-4.4.4-13.el6 (i686)

libstdc++-devel-4.4.4-13.el6 (x86_64)

libstdc++-devel-4.4.4-13.el6 (i686)

libaio-0.3.107-10.el6 (x86_64)

libaio-0.3.107-10.el6 (i686)

libaio-devel-0.3.107-10.el6 (x86_64)

libaio-devel-0.3.107-10.el6 (i686)

libXext-1.1 (x86_64)

libXext-1.1 (i686)

libXtst-1.0.99.2 (x86_64)

libXtst-1.0.99.2 (i686)

libX11-1.3 (x86_64)

libX11-1.3 (i686)

libXau-1.0.5 (x86_64)

libXau-1.0.5 (i686)

libxcb-1.5 (x86_64)

libxcb-1.5 (i686)

libXi-1.3 (x86_64)

libXi-1.3 (i686)

make-3.81-19.el6

sysstat-9.0.4-11.el6 (x86_64)

unixODBC-2.2.14-11.el6 (64-bit) or later

unixODBC-devel-2.2.14-11.el6 (64-bit) or later

本文采用yum命令安装,也可以选择使用rpm –ivh来安装。


执行以下语句把光盘挂到磁盘上:



[root@linux-6-64 Desktop]# mount /dev/cdrom /mnt

mount: block device /dev/sr0 iswrite-protected, mounting read-only

进入以下目录:

[root@linux-6-64 Desktop]# cd /etc/yum.repos.d/

删除里面的文件并新建一个repo文件:

[root@linux-6-64 yum.repos.d]# rm -rf *.repo

[root@linux-6-64 yum.repos.d]# vi rhel-info.repo

把以下内容添加到新文件中:

[Server]

name=Server

baseurl=file:///mnt/Server

enabled=1

gpgcheck=1

gpgkey=file:///mnt/RPM-GPG-KEY-RedHat-release

执行以下命令:

[root@linux-6-64 yum.repos.d]# yum clean all

Loaded plugins: product-id,refresh-packagekit, security, subscription-manager

Updating certificate-based repositories.

Cleaning repos: Server

Cleaning up Everything

[root@linux-6-64 yum.repos.d]# yum update

Loaded plugins: product-id,refresh-packagekit, security, subscription-manager

Updating certificate-based repositories.

Server | 4.0 kB 00:00 ...

Server/primary_db | 3.1MB 00:00 ...

Setting up Update Process

No Packages marked for Update


接下来就可以使用yum命令了:

进去rpm包的目录:cd /mnt/Packages

执行yum install unixODBC-2.2.14-11.el6 unixODBC-devel-2.2.14-11.el6sysstat-9.0.4-11.el6 make-3.81-19.el6 libXi-1.3 libXi-1.3libaio-devel-0.3.107-10.el6 libaio-devel-0.3.107-10.el6 libXext-1.1 libXext-1.1libXtst-1.0.99.2 libXtst-1.0.99.2 libX11-1.3 libX11-1.3 libXau-1.0.5libXau-1.0.5 libxcb-1.5 libxcb-1.5 binutils-2.20.51.0.2-5.11.el6compat-libcap1-1.10-1 compat-libstdc++-33-3.2.3-69.el6compat-libstdc++-33-3.2.3-69.el6 gcc-4.4.4-13.el6 gcc-c++-4.4.4-13.el6glibc-2.12-1.7.el6 glibc-2.12-1.7.el6 glibc-devel-2.12-1.7.el6glibc-devel-2.12-1.7.el6 ksh libgcc-4.4.4-13.el6 libgcc-4.4.4-13.el6libstdc++-4.4.4-13.el6 libstdc++-4.4.4-13.el6 libstdc++-devel-4.4.4-13.el6libstdc++-devel-4.4.4-13.el6 libaio-0.3.107-10.el6 libaio-0.3.107-10.el6


执行之后显示:

No package binutils-2.20.51.0.2-5.11.el6available.

No package gcc-4.4.4-13.el6 available.

No package gcc-c++-4.4.4-13.el6 available.

No package glibc-2.12-1.7.el6 available.

No package glibc-2.12-1.7.el6 available.

No package glibc-devel-2.12-1.7.el6available.

No package glibc-devel-2.12-1.7.el6available.

No package libgcc-4.4.4-13.el6 available.

No package libgcc-4.4.4-13.el6 available.

No package libstdc++-4.4.4-13.el6available.

No package libstdc++-4.4.4-13.el6available.

No package libstdc++-devel-4.4.4-13.el6available.

No package libstdc++-devel-4.4.4-13.el6available.

依经验来看linux下不可能没有gcc这样重要的包,分析可能是小版本号不对。此处笔者偷懒,直接使用

yum install glibc*

yum install gcc*

yum install binutils*

yum install libgcc*

yum install libstdc++*

这些命令把相关的包全装上了,嘿嘿

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/196700/viewspace-2056355/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/196700/viewspace-2056355/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值