[李景山php] linux 网络
来源:互联网 发布:windows资源监视器 编辑:程序博客网 时间:2024/06/06 13:17
网络相关设置:
ping:
作用:通常用于检测网络设备的连通性
格式:ping IP/域名
选项:-c,指定方式测试数据包的次数
ifconfig:
作用:查看或设置网卡信息
实例:
ifconfig:查看活动网卡信息
ifconfig eth0 down:关闭网卡,等价于ifdown eth0
ifconfig eth0 up:开启网卡,等价于ifup eth0
服务:
/etc/init.d/network start|stop|restart 开启|关闭|重启 网络服务
service network start|stop|restart 开启|关闭|重启 网络服务
网卡配置文件:/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:1C:42:51:74:18DDR=
TYPE=Ethernet
UUID=b3de21de-5cc9-472d-ac0d-3e8198988ddd
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
添加域名服务器(DNS)地址:/etc/resolv.conf
8.8.8.8
114.114.114.114
添加本地域名解析服务:/etc/hosts
127.0.0.1 www.hello.com
- [李景山php] linux 网络
- PHP网络
- PHP之linux(三) 编辑器(vi/vim) 网络配置
- [李景山php] linux
- [李景山php] -linux -用户组
- [李景山php] linux课程大纲
- [李景山php] Linux课程-vim
- [李景山php] linux 文件操作
- [李景山php] linux-文件搜索
- 网络 linux网络配置
- 网络&LINUX
- Linux网络
- Linux 网络
- Linux 网络
- Linux网络
- linux网络
- linux 网络
- linux网络
- 【机器学习PAI实践六】金融贷款发放预测
- IOS开发之MVC模式(根据网易斯坦福大学公开课整理)
- android之鲜为人知的Intent功能
- Windows 和 ubuntu 共享目录
- 接口性能测试方案
- [李景山php] linux 网络
- cookie跨域存取
- [李景山php] linux 服务及进程
- PHP判断iPhone、iPad、Android、PC设备的方法
- EditText自定义输入数据格式,比如只能是数字和字母(身份证最后一位X)
- [李景山php]
- 【基本操作命令】mysql基本操作命令汇总--笔记
- Dialog使用个人总结
- 【DP】洛谷 P1472 奶牛家谱 Cow Pedigrees