Amazon EC2 Linux实例定制内核
# 启动EC2 AMI实例
# 获取内核源码
get_reference_source -p kernel
sudo rpm -Uvh /usr/src/srpm/debug/kernel-3.2.21-1.32.6.amzn1.src.rpm
# 安装依赖包
sudo yum install -y gcc gcc44 system-rpm-config m4 rpm-build gdb xmlto asciidoc elfutils-devel zlib-devel binutils-devel python-devel perl gettext newt-devel perl-ExtUtils-Embed
cd /usr/src/rpm/SOURCES/
# 修改内核配置
sudo vi config-generic
# 修改版本号
sudo vi kernel.spec
# 编译并安装内核
sudo rpmbuild -bb kernel.spec
sudo rpm -ivh /usr/src/rpm/RPMS/x86_64/kernel-3.2.21-1.32.7.amzn1.x86_64.rpm
相关推荐
lonesomer 2020-09-17
changecan 2020-11-19
sunnnyduan 2020-10-16
houdaiye 2020-09-23
XPZ0 2020-09-22
changecan 2020-09-22
jackadmi 2020-09-11
yuan00yu 2020-08-24
yserver 2020-08-15
liyansring 2020-08-15
liai 2020-08-09
山有木兮卿有意 2020-08-03
85206633 2020-07-28
suosuo 2020-07-28
83911930 2020-07-28
85590296 2020-07-22
liym 2020-07-20