【Linux】关机设置,与BT5IP设置

来源:互联网 发布:淘宝商标需要注册吗 编辑:程序博客网 时间:2024/06/08 19:55

Linux命令:

重启命令:
1、reboot
2、shutdown -r now 立刻重启(root用户使用)
3、shutdown -r 10 过10分钟自动重启(root用户使用) 
4、shutdown -r 20:35 在时间为20:35时候重启(root用户使用)
如果是通过shutdown命令设置重启的话,可以用shutdown -c命令取消重启

关机命令:
1、halt   立刻关机
2、poweroff  立刻关机
3、shutdown -h now 立刻关机(root用户使用)
4、shutdown -h 10 10分钟后自动关机
如果是通过shutdown命令设置关机的话,可以用shutdown -c命令取消重启

BT5ip设置:

IP地址的设置:

step1、

Note:copy 有风险,使用需谨慎;如果直接从这里贴进去bt5的ip设置文件,有可能会出现提示配置不对的情况;
        gateway 192.168.11.6          网关地址
nameserver 61.128.128.68              #备用DNS服务器
step3、 root@bt:~#  /etc/init.d/networking restart   重启网络

root@bt:~# vi /etc/network/interfaces    编辑IP 地址

auto eth0

#iface eth0 inet dhcp             用dhcp分配就只需要这一句就可以了。

iface eth0 inet static

        address 192.168.11.200  设置IP地址

        netmask 255.255.255.0      子网掩码

        network 192.168.11.0       网络地址

        broadcast 192.168.11.255      广播地址

step2、vi /etc/resolv.conf

nameserver 202.202.32.33              #首选DNS服务器

 如果家主机是路由上网,建议直接桥接吧。DNS直接写你路由里面的DNS,网关也可以。

step3、 root@bt:~#  /etc/init.d/networking restart   重启网络


Host文件设置:

root:~# vi /etc/hosts

10.10.10.128 attacker.dvssc.com


0 0