# dd if=/dev/zero of=/tmp/myswap bs=1M count=4096# mkswap /tmp/myswap# swapon /tmp/myswap# vim /etc/fstab/tmp/myswap swap swap defaults 0 0 (开机时启动此swa...
分类:
其他好文 时间:
2015-09-11 14:21:34
阅读次数:
135
双主一从架构,从服务器在本地,用于备份和研发测试。两台线上服务器进行数据库相互同步,保证数据一致性,采用xtrabackup备份数据库+脚本每天1点异地备份到从服务器。一、对线上的一台主服务器数据进行备份,并恢复到另外两台服务器上。innobackupex--defaults-file=/wqdata/m..
分类:
数据库 时间:
2015-09-10 17:38:28
阅读次数:
677
https://github.com/rickytan/RTImageAssetsRTImageAssets在Xcode6.4执行遇到RTImageAssets.xcplugin无法加载的问题,解决方案:1 终端执行, 把id记着 defaults read /Applications/Xco...
分类:
其他好文 时间:
2015-09-09 13:08:24
阅读次数:
182
OverviewThe NSUserDefaults class provides a programmatic interface for interacting with the defaults system. The defaults system allows an application...
Centos6
#hp-health-10.10-1710.30.rhel6.x86_64.rpm
#hpssacli-2.0-23.0.x86_64.rpm
hpssaclictrlallshowconfig
hpasmcli-s‘SHOWSERVER‘
/etc/init.d/hp-healthrestart
#cpuserparameter_hp_hardware.conf到zabbix目录
#/etc/sudoers.d/zabbix
Defaults:zabbix!requiret..
分类:
其他好文 时间:
2015-09-08 20:25:50
阅读次数:
171
jQuery EasyUI API 中文文档 - ValidateBox验证框,使用jQuery EasyUI的朋友可以参考下。用 $.fn.validatebox.defaults 重写了 defaults。用法 代码如下: 代码如下:$('#vv').validatebox({required:...
两个按钮- (IBAction)save:(id)sender { // [NSUserDefaults standardUserDefaults]可以直接操作偏好设置文件夹 NSUserDefaults *defaults = [NSUserDefaults standardU...
分类:
移动开发 时间:
2015-09-06 23:02:49
阅读次数:
395
这个例子是一个简单的,自定义阴影效果:(function($){ $.fn.shadow=function(opts) { var options=$.extend({},$.fn.shadow.defaults,opts); return this.each(function(){...
分类:
其他好文 时间:
2015-09-04 22:28:46
阅读次数:
180
显示:defaults write com.apple.finder AppleShowAllFiles -bool true隐藏:defaults write com.apple.finder AppleShowAllFiles -bool false
分类:
系统相关 时间:
2015-09-03 21:38:49
阅读次数:
174
1. 更换DNS服务器国内可以用alidns:223.5.5.5223.6.6.6也可以用电信的:114.114.114.114国外的可以考虑Google8.8.8.88.8.4.42. 清除App Store缓存在终端输入:defaults write com.apple.appstore Sho...
分类:
移动开发 时间:
2015-09-01 16:43:33
阅读次数:
167