当我们在虚拟化平台中对各个linux服务器进行克隆后会出现网卡无法使用的情况,解决这一问题的方法:红帽6.0删除/etc/udev/rules.d/70-persistent-net.rules,更改网卡配置文件/etc/sysconfig/network-scripts/ifcfg-eth0中的mac地址项红帽5.5则是删除/et/udev/rules.d/60-pcmci..
分类:
系统相关 时间:
2015-04-28 18:44:05
阅读次数:
155
转自:http://www.xefan.com/archives/83568.html这是对程序员非常实用的一款插件,支持多种语言的补全,还支持单行注释,批量注释,等各种命令映射。使用方法,先下载该插件:http://www.vim.org/scripts/script.php?script_id=...
分类:
系统相关 时间:
2015-04-28 11:33:17
阅读次数:
146
首先找到Gradle Scripts下的build.gradle(Module:app)文件,然后再buildToolsVersion下方加入android{compileOption.encoding="GBK"}代码,如图:...
分类:
移动开发 时间:
2015-04-28 09:36:48
阅读次数:
249
/etc/init.d/network restart//===========================================更新脚本cd /www/scripts更新站点./staging_deploy.sh -d web更新resource./staging_deploy.sh...
分类:
系统相关 时间:
2015-04-27 18:11:24
阅读次数:
255
groupaddmysqluseradd-r-gmysqlmysqlmvmysql-5.5.27-linux2.6-i686//usr/local/ln-smysql-5.5.27-linux2.6-i686/mysqlcd/usr/local/mysqlchown-Rmysql.chgrp-Rmysql./usr/local/mysql/scripts/mysql_install_db--user=mysqlERROR:scripts/mysql_install_db:./bin/my_print_defa..
分类:
数据库 时间:
2015-04-27 15:34:21
阅读次数:
137
一、网卡绑定:1:创建一个ifcfg-bond0#cd/etc/sysconfig/network-scripts/#viifcfg-bond0DEVICE=bond0TYPE=EthernetONBOOT=yesBOOTPROTO=staticIPADDR=10.5.20.13NETMASK=255.255.252.0GATEWAY=10.5.20.253BONDING_OPTS="mode=0miimon=100"##mode有多种模式实现不同的功能2:..
分类:
系统相关 时间:
2015-04-27 15:34:17
阅读次数:
170
一、设置静态IP1.修改网卡配置 编辑:vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 #描述网卡对应的设备别名,例如ifcfg-eth0的文件中它为eth0 BOOTPROTO=static #设置网卡获得ip地址的方式,可能的选....
分类:
其他好文 时间:
2015-04-26 21:13:50
阅读次数:
276
pip?install?DjangoCaptcha
奇葩错误:
Fatal?error?in?launcher:?Unable?to?create?process?using?‘""D:\Program?Files?(x86
)\Python\python.exe""?"D:\Program?Files?(x86)\Python\Scripts\pi...
分类:
其他好文 时间:
2015-04-26 15:20:20
阅读次数:
101
将three.js-master\utils\exporters\blender\addons 下面的io_three文件夹,拷贝到blender安装目录:blender-2.74-windows64\2.74\scripts\addons目录下面,1)点击窗体右侧,默认为outline模式,在模式...
分类:
Web程序 时间:
2015-04-25 21:01:49
阅读次数:
1178
完成此脚本,主要是为了将本地服务器上的文件同步到腾讯云跳板机,然后再中转上传到腾讯云服务器。当然这也只是初步的方案。#vim/data/scripts/put_file.exp#!/usr/bin/expect
########################################################################
#pushlocalserver’sf..
分类:
其他好文 时间:
2015-04-25 16:49:00
阅读次数:
189