linux相关的管理知识

linux相关的管理知识

关闭linux系统
linux系统不同于window,不能直接按开关键进行硬关机,
因为linux的文件系统是mount到具体的硬件 (例如硬件,CD)上的,关机前需要将文件系统与硬件umount,直接关机,系统没有umount的机会,会很容易造成文件系统的损坏。

shutdown -h now

立刻关机 h指halt

shutdown -h +15

延时15分钟关机

shutdown -r +15

15分钟后重启 r 指reboot

Cmnd_Alias TOOLS = /bin/mount, /bin/umount, /sbin/shutdown

为非root用户授权关机,mount,umount权限

配置文件相关

hosts
hosts.allow
hosts.deny
# this machine
127.0.0.1      localhost

# other hosts in the local network
192.168.0.1    enterprise.mycompany.com      enterprise
192.168.0.2    constellation.mycompany.com  constellation
192.168.0.3    intrepid.mycompany.com        intrepid
192.168.0.4    exeter.mycompany.com          exeter
192.168.0.5    router.mycompany.com          router

hosts文件内容, ip 主机名 对照, 用于主机解释

ALL : 192.168.
imapd: .friendly.com, 999.99.
sshd: .friendly.com

hosts.allow 与 hosts.deny,主机访问控制(允许或禁止访问)

search mycompany.com
domain mycompany.com
nameserver 192.168.0.3
nameserver 999.99.9.9
nameserver 999.99.9.8

resolv.conf 路由服务器配置表

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值