CentOS6.5网络设置及设置同步时间
来源:互联网 发布:sql 参数 编辑:程序博客网 时间:2024/06/04 19:55
ifconfig eth0 192.168.136.128 #先设置一个临时ip 方便远程
通过Ctrl+Alt+F2进入命令行界面
登陆账号后输入以下代码
vi /etc/sysconfig/network-scripts/ifcfg-eth0 #编辑配置文件,添加修改以下内容ONBOOT=yes #开启自动启用网络连接BOOTPROTO=static #启用静态IP地址IPADDR=192.168.136.128 #设置IP地址NETMASK=255.255.255.0 #设置子网掩码GATEWAY=192.168.136.2 #设置网关DNS1=192.168.136.2 #设置主DNSIPV6INIT=no #禁止IPV6
按Esc后输入 :wq #保存退出,接着输入以下命令
service ip6tables stop #停止IPV6服务chkconfig ip6tables off #禁止IPV6开机启动service yum-updatesd stop #关闭系统自动更新,该命令可能不存在chkconfig yum-updatesd off #禁止开启启动,该命令可能不存在service network restart #重启网络连接ifconfig #查看IP地址#route add default gw 192.168.136.2 dev eth0 #设置默认网关yum install -y ntp #安装ntpservice ntpd start #启动ntpd服务chkconfig ntpd on #设置ntpd为开机启动
0 0
- CentOS6.5网络设置及设置同步时间
- CentOS6.5网络设置
- CentOS6.5网络设置
- CentOS学习(三)之CentOS6.5设置时间同步
- CentOS6.5设置网络连接
- VMware Centos6.5 网络设置
- 设置linux服务器时间与网络同步
- centos7 设置系统时间与网络同步
- CentOS6 网络设置
- Linux服务器时间设置及同步
- Docker容器时区设置及时间同步
- H3C交换机时区设置及时间同步
- Linux服务器时间设置及同步
- Linux 设置系统时间与网络时间同步
- ubuntu设置系统时间与网络时间同步
- ubuntu设置系统时间与网络时间同步(转)
- ubuntu设置系统时间与网络时间同步(转)
- ubuntu设置系统时间与网络时间同步
- Activity堆栈管理
- 安装Redhat 7.2
- 书写高质量jQuery代码的12条经验
- jsp和struct2的路径问题
- MYSQL中常用的强制性操作(例如强制索引)
- CentOS6.5网络设置及设置同步时间
- BZOJ1202: [HNOI2005]狡猾的商人
- SpringMVC中支持多视图解析
- 静觅小白爬虫及进阶系列学习笔记
- eclipse关于“Failed to load the JNI shared library ”
- 大杀器xgboost指南
- 如何在项目运行中调用命令行修改参数
- L0/L1/L2范数
- HashSet建立及用迭代器遍历