首页 > 系统服务 > 详细

linux6.5模板机

时间:2020-03-01 23:31:02      阅读:113      评论:0      收藏:0      [点我收藏+]

ifconfig
#重启网卡ifdown eth0;ifup eth0

cd /etc/sysconfig/network-scripts/
vi ifcfg-eth0
=====================
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
=====================

挂载

mkdir -p /media/cdrom
mount /dev/sr0 /media/cdrom

cd /etc/yum.repos.d/
mkdir bak
mv *C* bak/
mv bak/*M* .
vi CentOS-Media.repo
================
改enabled=1
================
yum -y clean all
yum makecache

yum -y install gcc* make vim* autoconf readline openssh - clients rsync nmap strace ltrace sysstat

chkconfig | egrep -v "sshd|network|crond|sysstat"|awk ‘{print "chkconfig",$1 "off"}‘|bash
chkconfig --list |grep "3:on"

> /etc/udev/rules.d/70-persistent-net.rules
init 0

linux6.5模板机

原文:https://www.cnblogs.com/su12/p/12392458.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!