只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2011-12-28 11:03 tomfang 阅读(344) 评论(3) 推荐(3) 编辑
  2019年6月19日
摘要: using System; using System.Collections.Generic; using System.Net.Http; namespace ConsoleApplication1 { public class HttpUtil { public static string test() { try ... 阅读全文
posted @ 2019-06-19 23:22 tomfang 阅读(1604) 评论(1) 推荐(0) 编辑
  2016年7月25日
摘要: 1、ifconfig查看ip 2、查询 例如:find / -name httpd.conf 3、查看是否有tomcat进程 ps –ef|grep tomcat 来查看是否有tomcat进程 4、杀tomcat进程kill [-9,可选强行杀] 进程号 5、端口被占用 有时tomcat启动的时候, 阅读全文
posted @ 2016-07-25 18:06 tomfang 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 由于权限问题,在linux下启动tomcat出现权限permission denied 提示解决方法如下: 1、cd 进入tomcat/bin目录 2、运行下面命令 sudo chmod 777 startup.sh sudo chmod 777 catalina.sh 方法二: 执行.sh文件 出 阅读全文
posted @ 2016-07-25 18:02 tomfang 阅读(1921) 评论(0) 推荐(0) 编辑
  2015年11月27日
摘要: CentOS 用ifconfig命令,只有lo,没有eth0的解决方案如果ifconfig -a 也没发现eth0则拷贝lo自己造一个,CentOS7 命令为 ip addr1、配置虚拟机如下图:2、查看本地ipconfig /all 相关ip配置信息:3、打开Centos定位至目录:cd /etc... 阅读全文
posted @ 2015-11-27 11:17 tomfang 阅读(262) 评论(0) 推荐(0) 编辑
  2015年11月26日
摘要: SecureCRTSecureCRT官网地址:http://www.vandyke.com/products/securecrt/Xmanager官方网址:http://www.netsarang.com/products/xme_overview.htmlPuTTY引用:http://blog.c... 阅读全文
posted @ 2015-11-26 21:08 tomfang 阅读(112) 评论(0) 推荐(0) 编辑
  2015年3月14日
摘要: 1.有可区分的主键,其他数据相同select * from 表名 dl where dl.id not in (select min(d.id) from表名dgroup by 重复列)2.重复数据只能通过RowNum、RowId区分的数据select * from 表名 where rowid i... 阅读全文
posted @ 2015-03-14 17:34 tomfang 阅读(402) 评论(0) 推荐(0) 编辑
  2015年3月10日
摘要: 已经安装了Access但Win7提示 找不到access driver:1、打开"C:\Windows\SysWOW64\odbcad32.exe"2、管理员cmd运行 命令:2、将Oracle 表导入到Access的方法:打开 "C:\Windows\SysWOW64\odbcad32.exe"安... 阅读全文
posted @ 2015-03-10 17:00 tomfang 阅读(331) 评论(0) 推荐(0) 编辑
  2014年4月7日
摘要: http://www.codeproject.com/Articles/165410/ASP-NET-MVC-Editable-DataTable-jQuery-DataTables-ahttp://msdn.microsoft.com/en-us/data/jj591621http://ddmvc4.codeplex.com/ 阅读全文
posted @ 2014-04-07 22:46 tomfang 阅读(145) 评论(0) 推荐(0) 编辑
  2014年2月26日
摘要: 根据状态获取各个状态汇总,如下图实现select provice, (select count(*) from [monitor] m where state=0 and m.provice=monitor.provice ) as m1,(select count(*) from [monitor] m where state=1 and m.provice=monitor.provice) as m2,(select count(*) from [monitor] m where state=2 and m.provice=monitor.provice) as m3,(sel... 阅读全文
posted @ 2014-02-26 00:55 tomfang 阅读(165) 评论(0) 推荐(0) 编辑
  2013年7月26日
摘要: 添加引用using System.Data.Common;using Microsoft.Practices.EnterpriseLibrary.Data;using Microsoft.Practices.EnterpriseLibrary.Common;//执行数据库操作: Database db = DatabaseFactory.CreateDatabase();//执行存储过程 DbCommand cmd = db.GetStoredProcCommand("存储过程名");//执行Sql语句 DbCommand cmd = db.GetSqlStringCom. 阅读全文
posted @ 2013-07-26 22:45 tomfang 阅读(263) 评论(0) 推荐(0) 编辑