Hello World - 2020年9月
type: channel
link: https://blog.shooter419.top/index.php/2020/09/
description: Just So So ...
items: Linux中挂载NFS共享
items: linux临时修改网关和DNS

Linux中挂载NFS共享
type: item
date: 2020-09-15T13:41:41+08:00
description: 在Ubuntu和Debian上安装NFS客户端：sudo apt update sudo apt install nfs-common sudo yum install nfs-utils 手动挂载NFS文件系统:mount [OPTION...] NFS_SERVER:EXPORTED_DIRECTORY MOUNT_POINT 例：sudo mount -t nfs 10.10.0.10:/backups /var/backups 使用/etc/fstab挂载:# <file system> <type> <options> <dump> <pass> 10.10.0.10:/backups /var/backups nfs defaults 0 0

linux临时修改网关和DNS
type: item
date: 2020-09-14T20:39:00+08:00
description: 临时修改ip命令：#修改网卡eth0 IP修改为102.168.0.1，子网掩码修改为255.255.255.0ifconfig eth0 102.168.0.1 netmask 255.255.255.0 #网关修改为102.168.0.254route add default gw 102.168.0.254 #Linux命令行修改dnsecho "nameserver 202.202.202.20 ">> /etc/resolv.conf