JJY

2011年7月15日 #

mongoDB

1. Run mongoDB in Windows,

In command prompt, go to folder which include mongod.exe, then type: 

        mongod.exe --dbpath D:/mongoDB/db, and click enter.

If you can see

[initandlisten] MongoDB starting : pid=xxxx port=xxxxx dbpath=xxxxxxxx 32-bit.

That means mongoDB is running now. Then open a new command prompt , and type mongo.exe, you should see:

MongoDB shell version: x.x.x

connecting to: test 

MongoDB running successful. 

 

2.  mongoDB closed unexpectedly,

  If mongoDB close unexpected, when you want to run it again, you will see message like:

  ************

   old lock file: D:/mongoDB/db/mongod.lock. probably means unclean shutdown recommend removing file and running --repair

  ************

  We can repair this problem as message write. Remove file mongod.lock from D:/mongoDB/ and D:/mongoDB/db/, then run

  mongod.exe --repair

  OK, problem resloved.

 

posted @ 2011-07-15 14:36 MikeJia 阅读(30) 评论(0) 编辑

未能创建Microsoft Visual C# 2008 编译器(转)

转自: http://blog.csdn.net/ylqmf/article/details/5443584 

Microsoft Visual C# 2008时不能加载和新建类,并提示:由于未能创建Microsoft Visual C# 2008 编译器,因此末能打开项目“XXXXXX”。针对“{74946829-37A0-11D2-A273-00C04F8EF4FF}”的QueryService失败。 

于是开始修复安装VS2008,结果还是不能解决,而且经测试连new一个Class libary都报同样的错误,但是文件会创建,只是加载不到解决方案中来,有点郁闷了。在网上找到了修改注册表的方法: 
[HKEY_CURRENT_USER/Software/Microsoft/VisualStudio/9.0/Packages/{7494682B-37A0-11D2-A273-00C04F8EF4FF}] 下面有个SkipLoading的dword值,把1改成0,重启vs2008,重启计算机还是不行。没有办法呀,只好把VS2008所涉及到的所有组件全部卸载掉并把注册表相关VS2008的全部删除掉,重新安装VS2008。 
解决方法: 
在visual studio 2008命令提示下运行如下两条指令: 
devenv /resetsettings 
devenv /resetskippkgs 
注:如果有装多个版本的VS的话,devenv加上路径.

posted @ 2011-07-15 10:50 MikeJia 阅读(23) 评论(0) 编辑

outlook连接谷歌企业邮箱(转)

转自 http://bbs.phpcms.cn/thread-59933-1-1.html

谷歌企业邮局Gmail企业邮局Outlook2007设置方法Google Apps


E-Mail Accounts tab

Your Name:(optional)
E-mail address:(your Gmail address, including '@gmail.com')
Incoming mail server (POP3):pop.gmail.com
Outgoing mail server (SMTP):smtp.gmail.com
User Name:(your Gmail address, including '@gmail.com')
Password:(your Gmail password)
Remember password:(optional)
Log on using Secure Password Authentication:disabled


More Settings: Outgoing Server tab


My outgoing server (SMTP) requires authentication:enabled
Use same settings as my incoming mail server:selected


More Settings: Advanced tab

Incoming server (POP3):995
This server requires a secure connection (SSL)enabled
Outgoing server (SMTP):587
Use the following type of encrypted connectionTLS
Server Timeouts(Greater than 1 minute, we recommend 5)
Leave a copy of messages on the serverdisabled

posted @ 2011-07-15 09:45 MikeJia 阅读(55) 评论(0) 编辑

导航

统计信息

News