码迷,mamicode.com
首页 >  
搜索关键字:tmp    ( 7796个结果
解决MySQL server through socket ‘/tmp/mysql.sock‘
:/alidata/www/default#?mysql?-u?root?-h?localhost?-p Enter?password:? ERROR?2002?(HY000):?Can‘t?connect?to?local?MySQL?server?through?socket?‘/tmp/mysql.sock‘?(2) 可能的解决方案...
分类:数据库   时间:2014-09-03 17:02:27    阅读次数:208
ZOJ Monthly, July 2012
zoj 3622、Magic Number   水题 先找规律生成区间[1,1内的所有Magic Number,计算出来只有40多个,然后就随便YY了。 void init() { int a[5] = { 1,2,5,25,125 }; ll Max = (1ll<<32)-1; for(ll tmp =1; tmp<=Max; tmp *=10) { for(int...
分类:其他好文   时间:2014-09-03 13:12:36    阅读次数:223
POJ 2039 To and Fro(水题)
【题目简述】:字符串的简单处理,看懂题意,特别是他给的那个例子就好,很简单 见代码: #include #include #include #include using namespace std; char str[211][211]; int main() { int colum; char str1[211]; int tmp; while(cin>>colum,co...
分类:其他好文   时间:2014-09-02 21:25:55    阅读次数:248
定时取数据库的schema,并推送到git服务器
写了个脚本,定时去数据库取schema,并推送到公司的git里。#daily_schema.py#/usr/bin/env pythonimport osimport datetime,timeos.system('mkdir -p /tmp/schema')tmp_now=datetime.dat...
分类:数据库   时间:2014-09-02 17:31:44    阅读次数:203
Ubuntu下VirtualBox kernel driver not installed
解決方案:1.sudo apt-get install virtualbox-ose-source2.cd /usr/src3.sudo tar xjvf virtualbox*.bz24.cd modules/virtualbox-ose5.sudo ./build_in_tmp install6...
分类:其他好文   时间:2014-09-02 11:59:44    阅读次数:201
tmp_table_size ---> 优化 MYSQL 经验总结
数据库连接突然增多到1000的问题查看了一下,未有LOCK操作语句。但是明显有好多copy to tmp table的SQL语句,这条语读的时间比较长,且这个表会被加读锁,相关表的update语句会被排进队列。如果多执行几次这样的copyt to tmp table 语句,会造成更多的语句被阻塞。连...
分类:数据库   时间:2014-09-02 01:30:03    阅读次数:305
tftp下载文件
1. 文件系统为cramfs文件系统,下载只能下载到tmp目录 2. tftp命令的使用,下载东西: cd /tmp tftp -g -r nandup 192.168.0.127 3. nandup执行失败问题: # ./nandup  /bin/sh: ./nandup: not found 一般都是连接问题,编译的时候加-static即可...
分类:其他好文   时间:2014-09-02 00:26:33    阅读次数:193
Linux常用指令---系统管理
四、linux服务器" 【have no space】"开发机dev2上不管是upa/upc上传文件时,会挂载在/目录下,而此时这里只有3G空间,通过df -h显示各大挂载点使用情况;java上传默认会先上传到tmp临时目录,这里如果/目录空间不足,可以考虑将上传使用其他目录,eg:tmp命令 to...
分类:系统相关   时间:2014-09-02 00:05:03    阅读次数:289
iOS 文件操作
-(void)dirHome{ NSString *dirHome=NSHomeDirectory(); NSLog(@"app_home: %@",dirHome); } iOS的沙盒机制,应用只能访问自己应用目录下的文件。iOS 不像android,没有SD卡的概念,不能直接访问图像、视频等内容。iOS应用产生的内容,如图像、文件、缓存内容等都必须存储在自己的沙盒内。...
分类:移动开发   时间:2014-09-01 14:02:33    阅读次数:177
-- process information unavailable 解决
今天手动kill掉hive thrive进程,jps出现了“-- process information unavailable”,很怪异。。。问题解决:进入tmp目录, 删除该目录下名称为hsperfdata_{username}的文件夹然后jps,世界清静了。
分类:其他好文   时间:2014-09-01 13:50:13    阅读次数:223
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!