[root@localhost ~]# passwd Changing password for user root. New password: Retype new password: passwd: all authentication tokens updated successfully....
查看硬盘分区 fdisk -l 给存储设备分区(/dev/sda3为即将进行分区的设备) fdisk /dev/sda 命令后按提示进行操作(一般为 n、p、1、两次回车、wq,可参考但不可记忆) 格式化 mkfs.ext4 /dev/sda1 挂载在格式化的分区到某目录(以/skydata目录为例) (1)创...
centos中设置默认网关、ip地址等网络信息。 1,查看网络连接 ifconfig 2,查看eth0的网络连接信息 ifconfig eth0 3,设置eth0的ip和子网掩码【临时】 ifconfig eth0 192.168.114.211 netmask 255.255.255.0 4,设置eth0的网管【临时】 router add default gw...
查看网络连接 ifconfig 查看eth0的网络连接信息 ifconfig eth0 设置eth0的IP和掩码【临时】 ifconfig eth0 192.168.114.211 netmask 255.255.255.0 设置eth0的网管【临时】 router add default gw 192.168.114.1 设置eth0的IP、掩码、网关、DNS【永久】 1、...
电脑中必不可少的就是操作系统。而Linux的发展非常迅速,有赶超微软的趋势。这里介绍Linux的知识,让你学好应用Linux系统。比如要把/etc/apache/bin目录添加到PATH中,方法有三: 1.#PATH=$PATH:/etc/apache/bin 使用这种方法,只对当前会话有效,也就是说每...
关闭:/etc/init.d/iptables stop 开启:/etc/init.d/iptables start 重启:/etc/init.d/iptables restart 查看:/etc/init.d/iptables status 保存:/etc/init.d/iptables save 打开8080端口:/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT 删除...
1、CentOS 修改DNS 修改对应网卡的DNS的配置文件 # vi /etc/resolv.conf 修改以下内容 nameserver 8.8.8.8 #google域名服务器 nameserver 8.8.4.4 #google域名服务器 2、CentOS 修改网关 修改对应网卡的网关的配置文件 [root@centos]# vi /etc/sysconfig/net...
一、CentOS 修改IP地址 修改对应网卡的IP地址的配置文件 # vi /etc/sysconfig/network-scripts/ifcfg-eth0 修改以下内容 DEVICE=eth0 #描述网卡对应的设备别名,例如ifcfg-eth0的文件中它为eth0 BOOTPROTO=static #设置网卡获得ip地址的方式,可能的选项为sta...
centos破解系统密码(CentOS就是linux系统)有两种方法: 一Grub无密码的情况下破解(七个步骤) 第二种情况 2.Grub有密码,并且我们不知道Grub密码的情况下,破解密码方法(九个步骤):...