??
如何绕过oracle 监听的密码设置:
1.找到监听进程pid ,并将它kill 掉
ps -ef|grep tns
[oracle@lixora admin]$ ps -ef|grep tns
root 9 2 0 Jul11 ? 00:00:00 [netns]
oracle 29668 1 0 10:12 ? ...
分类:
数据库 时间:
2014-07-21 13:38:47
阅读次数:
277
1、看是否已经有某个进程在运行了,如tomcatps -ef |grep tomcat2、查看某个端口是否被占用,如8080netstat -nap | grep 8080
分类:
系统相关 时间:
2014-07-18 20:06:28
阅读次数:
281
关于 JsonIgnore 问题,EF T4 模板 中 存在主外键关系namespace WindowsFormsApplication1{ using System; using System.Collections.Generic; using Newtonsoft.Json; public p...
分类:
Web程序 时间:
2014-07-18 16:19:57
阅读次数:
433
Entity Framework是个好东西,虽然没有Hibernate功能强大,但使用更简便。今天整理一下常见SQL如何用EF来表达,Func形式和Linq形式都会列出来(本人更喜欢Func形式)。1、简单查询:SQL:SELECT*FROM[Clients]WHEREType=1ANDDelete...
分类:
其他好文 时间:
2014-07-18 15:28:12
阅读次数:
288
最近项目的看门狗经历了三个版本。
第一个版本:
用ps -ef,如果程序挂了就启动
第二个版本:
程序由于运行时会出现不再监听7901端口,所以不能简单判断机器是不是挂了,而是判断此端口是否有监听
第三个版本:
当7901端口不再监听,就先把原来的killall在启动,每次输出到文件的内容都加日期,要不然根本不知道这事情啥时候发生的
#!/bin/sh
set...
分类:
系统相关 时间:
2014-07-18 11:28:27
阅读次数:
257
nginx启动,重启,关闭命令停止操作停止操作是通过向nginx进程发送信号(什么是信号请参阅linux文 章)来进行的步骤1:查询nginx主进程号ps -ef | grep nginx在进程列表里 面找master进程,它的编号就是主进程号了。步骤2:发送信号从容停止Nginx:kill -QU...
分类:
其他好文 时间:
2014-07-18 10:30:33
阅读次数:
238
现在的.net or构架,大家认同的各种大大小小,ef,subsonic,nhibernate,甚至小一些的petapoco这种,但用过的人我想他们考虑的是比较多。小一些的Petapoco也有几千行的代码。而有一些或是配置困难,或是脱离不了一些sql,而我一直在寻找一种更简便的方法简化自己的开发,使...
分类:
Web程序 时间:
2014-07-18 10:14:10
阅读次数:
204
public List FillsToCheck(int sid,int eid) { using (DAL.ExamSysEntities db = new DAL.ExamSysEntities()) { r...
分类:
Web程序 时间:
2014-07-16 17:38:50
阅读次数:
269
重置mysql的root密码# /etc/init.d/mysql stopShutting down MySQL. [ OK ]# ps -ef |grep mysqlroot 25174 24030 0 0...
分类:
数据库 时间:
2014-07-16 15:54:20
阅读次数:
311
1.Model compatibility cannot be checked because the EdmMetadata type was not included in the model. Ensure that IncludeMetadataConvention has been add...
分类:
Web程序 时间:
2014-07-16 13:44:15
阅读次数:
255