1.安装依赖包: yuminstallcurl-develexpat-develgettext-developenssl-develzlib-devel2.下载git: wgethttps://www.kernel.org/pub/software/scm/git/git-2.3.6.tar.gz3.建立git用户: [root@myhost1~]#useradd-r-mgit4.编译安装: [root@myhost1git-2.3.6]#cd/tmp/git-2.3.6 [ro..
分类:
其他好文 时间:
2015-04-23 13:48:52
阅读次数:
136
kickstart及引导镜像制作1,挂载系统发行光盘到/mnt目录下#mount-oro/dev/cdrom/mnt/2,复制系统发行光盘中的isolinux目录至/tmp/cdrom;#mkdir/tmp/cdrom#cp/mnt/isolinux/tmp/cdrom3,制作kickstart文件ks.cfg文件至/tmp/cdrom下#安装system-config-kickstart#yuminstallsystem-..
分类:
其他好文 时间:
2015-04-23 00:17:14
阅读次数:
214
错误提示:mysql>select*intooutfile‘/tmp/mysql-slow.csv‘frommysql.slow_log;
ERROR1290(HY000):TheMySQLserverisrunningwiththe--secure-file-privoptionsoitcannotexecutethisstatement
mysql>
分类:
数据库 时间:
2015-04-23 00:11:30
阅读次数:
726
置换群的第二题,一开始总是tle,后来一思考,置换根本不是这个情况,置换是一种排列,就用了几个数组将输入的数进行操作,最后A了,对置换有一些了解了。
#include
#include
#include
using namespace std;
const int maxn = 10000+10;
int n,least;
int a[maxn],b[1000010],s[maxn],tmp[1...
分类:
其他好文 时间:
2015-04-23 00:07:04
阅读次数:
158
linux下调试程序,出现如下错误:/tmp/ccG8fpwg.o: In function `apache_viewlog_form':apache.c:(.text+0x776): undefined reference to `GTK_TEXT'apache.c:(.text+0x789):....
分类:
其他好文 时间:
2015-04-22 21:56:17
阅读次数:
92
1 #include 2 #include 3 #include 4 bool judge(int a) 5 { 6 int sqr=sqrt(a*1.0); 7 for(int i=2 ; i<=sqr+1 ; ++i) 8 { 9 int tmp=i*i...
分类:
其他好文 时间:
2015-04-22 20:18:47
阅读次数:
125
public String excelDomnload() throws Exception{ try{ /* String path = GlobalKeys.getFunctionConfig("user_attach_save","/opt/tmp/"); RegUser ru ...
分类:
编程语言 时间:
2015-04-22 15:12:05
阅读次数:
189
这道题与实现数组中的删除重复元素类似。我们来看一下具体的过程,首先要判断是否为空(在这个上面吃了大苦头),删除下一个相同的元素的时候要定义一个tmp元素,再free掉即可。
#include
#include
struct ListNode
{
int val;
ListNode *next;
};
ListNode *deleteDuplicates(ListNode *head...
分类:
其他好文 时间:
2015-04-22 11:49:00
阅读次数:
150
题意:求最长的合法括号序列解:栈+分类讨论now表示已经算出的序列,且此序列与现在扫描的序列可能能够连接,tmp表示现在扫描到的序列长度左括号入栈右括号:1.栈空时:统计当前总长 并且将栈,now,tmp清空2.栈不空:(1)匹配:tmp+2,弹栈,如果弹栈后栈为空,now=now+tmp相当于把现...
分类:
其他好文 时间:
2015-04-22 00:09:25
阅读次数:
278
其实本来应该是很简单的事,结果意外的搞复杂了主要是一开始在一台xenserver5.6的母机上花费了很多时间,结果发现xenserver5.6并不支持6以上的centos,然后让机房插光盘安装安装centos时又出现报错,最后是内网用nfs装上的rpm-qa|grepnfs
vim/etc/exports
/tmp*(rw,no_root_squ..
分类:
其他好文 时间:
2015-04-21 18:45:23
阅读次数:
212