3、修改tomcat2的端口4、在startup.sh和shutdown.sh添加tomcat2的变量vim/usr/local/tomcat2/startup.sh
exportJAVA_HOME=/usr/java/jdk1.7.0_79
exportPATH=$PATH:$JAVA_HOME/bin
exportCLASSPATH=$JAVA_HOME/lib
exportCATALINA_HOME=$CATALINA_2_HOME
exportCATALINA_BASE=$..
分类:
其他好文 时间:
2015-05-26 19:10:54
阅读次数:
105
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree. For example:Given the below binary tree, 1 ...
分类:
编程语言 时间:
2015-05-26 18:40:02
阅读次数:
157
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsum =...
分类:
其他好文 时间:
2015-05-26 18:13:18
阅读次数:
136
今天想给一个用户赋予一个数据库的操作权限,root@%操作一直报错;1044 没有权限,而且对一些数据库也没有写入更新权限;找很多资料是root权限丢失啦;开始找资料去回复root权限; 1.配置个环境变量先:Path 中添加 mysql的安装目录 c:/mysql/bin; 2.跳过权限验证登录....
分类:
数据库 时间:
2015-05-26 17:52:42
阅读次数:
223
这里是控制台的报错信息:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [ap...
分类:
移动开发 时间:
2015-05-26 17:48:03
阅读次数:
150
#!/usr/bin/envpthon
#_*_coding=utf-8_*_
#python版本(nginx日志切割脚本)
importos
importdatetime
#access.log路径
accesslogs_path="/usr/local/nginx/logs/"
#昨天的日期
lastDate=datetime.date.today()-datetime.timedelta(days=1)
#备份路径
bak_path="%s%s/%s/"%(..
分类:
编程语言 时间:
2015-05-26 16:28:29
阅读次数:
345
os.listdir()os.path.isdir()os.path.split()返回一个路径的目录名和文件名os.path.dirname()os.system()os.mkdir("file")os.chdir("C:\\123")importos,sys
os.chdir("f:\\51cto")
forlistsinos.listdir(‘.‘):
ifos.path.isdir(lists):
list1="d:\\muban\\"+lists
os.mkdi..
分类:
编程语言 时间:
2015-05-26 16:22:40
阅读次数:
204
>>1.除了在storage.conf里的tracker_server增加tracker的ip和端口,其他地方要注意什么?
恩,tracker server ip和端口,肯定是要正确设置的。支持多tracker server,每行设置一个tracker。
另外,base_path也要正确设置。
其余参数,通常采用缺省配置即可。你可以看一下配置说明那个帖子。
>>每台tracker和st...
分类:
其他好文 时间:
2015-05-26 16:10:43
阅读次数:
294
电脑捣鼓成了64位操作系统,相应的一些工具要重装。今日将以前32位python 卸载,重装成64位的,然后默认安装成功。然后设置系统变量。进入我的电脑->属性->高级->环境变量->系统变量 ,编辑path 变量:量名:PATH变量值:;C:\Python27保存成功后,打开运行对话框,输入cmd....
分类:
编程语言 时间:
2015-05-26 15:45:10
阅读次数:
202
加载plist文件 1 @property (nonatomic) NSArray *list; 2 3 4 - (NSArray *)list{ 5 if (_list==nil) { 6 NSString *path=[[NSBundle mainBundle] pa...
分类:
其他好文 时间:
2015-05-26 15:40:47
阅读次数:
102