web安全

linux挂载磁盘和添加ip一小段命令

Admin 0

linux命令
  #ifconfig eth3:1 43.243.169.* netmask 255.255.255.0 up

  ifconfig eth3:2 43.243.169.* netmask 255.255.255.0 up

  ifconfig eth3:3 43.243.169.* netmask 255.255.255.0 up

  ifconfig eth3:4 43.243.169.* netmask 255.255.255.0 up

  ifconfig eth3:5 43.243.169.* netmask 255.255.255.0 up

  ifconfig eth3:6 43.243.169.* netmask 255.255.255.0 up

  ifconfig eth3:7 43.243.169.* netmask 255.255.255.0 up

  ifconfig eth3:8 43.243.169.* netmask 255.255.255.0 up

  ifconfig eth3:9 43.243.169.* netmask 255.255.255.0 up

  /dev/sdb1(磁盘分区) /data1(挂载目录) ext3(文件格式)defaults 0 0

  /dev/sda2

  mount /dev/sdb1 /wwwww

  要修改/etc/fstab文件。

  加一行字:

  /dev/sdb1 /workspace ext3 defaults 0 0

  /dev/sdb1 /wwww ext4 defaults 0 0

标签: linux挂载磁盘,linux添加ip

留言与评论(共有 0 条评论)
验证码: