1.在vim中显示行号  在/etc/vimrc里加上一行   set nu!

2./etc/sysconfig/network-scripts/ifcfg-eth0    (DNS1=192.168.137.1)

记住再来一下 #service network restart

3./etc/resolv.conf配置  (格式:nameserver 222.345.126.2)

4.查看yum源有什么  ls -l /etc/yum.repos.d/

5.上不了网,先使用这个看看  route -n

关于Linux的常忘命令积累

然后用  route add  dafault gw 192.168.137.1   就有删掉了。

相关文章:

  • 2022-02-03
  • 2022-12-23
  • 2022-01-28
  • 2021-12-08
  • 2022-01-08
  • 2021-11-07
  • 2021-07-18
  • 2022-12-23
猜你喜欢
  • 2021-08-11
  • 2022-12-23
  • 2021-12-30
  • 2022-01-23
  • 2021-09-04
  • 2022-12-23
  • 2021-10-28
相关资源
相似解决方案