b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

linux网络命令★Cobbler无人值守安装linux系统(2)

电脑杂谈  发布时间:2018-02-14 06:55:09  来源:网络整理

# sed -i 's#yes#no#' /etc/xinetd.d/tftp

# vim /etc/cobbler/dhcp.template

subnet 192.168.110.0 netmask 255.255.255.0 {

optionrouters 192.168.110.1; #网关

optionsubnet-mask 255.255.255.0; #子网掩码

rangedynamic-bootp 192.168.110.33 192.168.110.99; ##自动分配的ip段

default-lease-time 21600;

max-lease-time 43200;

:wq #改完了保存退出

重启

# systemctl restart rsyncd tftp.socket cobblerd

# systemctl enable rsyncd tftp.socket cobblerd

# systemctl start rsyncd.service

# systemctl enable rsyncd.service

同步 (每次改完配置都要同步)

# cobbler sync

#cobbler get-loaders

#ls/var/lib/cobbler/loaders

COPYING.elilo elilo-ia64.efi menu.c32yaboot

COPYING.syslinux grub-x86_64.efi pxelinux.0

COPYING.yaboot grub-x86.efi README

debian相关无需修改(不用debian就不需要管了)

linux网络命令 本机ip_linux网络配置文件_linux网络命令

再次检查

# cobbler check

The following are potential configurationitems that you may want to fix:

1 : debmirror package is not installed, itwill be required to manage debian deployments and repositories

2 : fencing tools were not found, and arerequired to use the (optional) power management features. install cman orfence-agents to use them

Restart cobblerd and then run 'cobblersync' to apply changes.

重启所有服务

systemctl restart httpd cobblerd dhcpd rsyncdtftp.socket

cobbler安装完成,下面进行web界面的操作。

浏览器访问https://192.168.110.18/cobbler_web

注意CentOS7中cobbler只支持https访问。linux网络命令

账号密码默认均为cobbler

操作说明--导入镜像

在虚拟机上添加上镜像

vmware:

# mount /dev/cdrom/mnt/

mount: /dev/sr0 is write-protected,mounting read-only

# df -h |grep mnt

/dev/sr0 4.3G4.3G 0 100% /mnt

选择ImportDVD输入Prefix(命名),Arch(架构),Breed(版本),Path(镜像的路径)


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-76936-2.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...