当启动IIS的时间比系统已配置的时间长时,IIS将无法启动,并报1053错误.
Could not stop the Windows service name service on Local Computer.
Error 1053:The service did not respond to the start or control request in a timely fashion.
解决方法是首先确认World Wide Web Publishing服务是否已经启动,没有的话就启动它.
如果World Wide Web Publishing也无法启动,并报1717错误的话,再确认Event Log服务是否已经启动,
Event Log服务启运后应该就可以启动World Wide Web Publishing服务了,之后IIS也应该能够启动了.
Ubuntu 浏览器中Flash中的文字乱码的解决方法
不知道这个现象是不是仅仅出现在UBUNTU中,其它LINUX系统OS还没验证过。原因是/etc/fonts/conf.d/49-sansserif.conf文件引起的,解决方法就是删除它(保险点还是重命名为好)。
rails:/lib/initializer.rb:269:in `require_frameworks': no such file to load -- net/https (RuntimeError)错误
rails2.3.2 WEBrick服务器无法启动,详细错误信息如下:
错误原因:缺少libopenssl-ruby包,或该包丢失。
解决方法当然是安装该包了。
$ sudo apt-get install libopenssl-ruby
=> Booting WEBrick
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
/home/leself/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:269:in `require_frameworks': no such file to load -- net/https (RuntimeError)
from /home/leself/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:134:in `process'
from /home/leself/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
from /home/leself/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
from /home/leself/blog/config/environment.rb:10
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
from /home/leself/.gem/ruby/1.8/gems/rails-2.3.2/lib/commands/server.rb:84
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./script/server:3
错误原因:缺少libopenssl-ruby包,或该包丢失。
解决方法当然是安装该包了。
$ sudo apt-get install libopenssl-ruby
oracle查看用户属于哪个role
'查看username属于哪个role
select * from dba_role_privs where grantee=upper('username');
'查看rolename拥有哪些权限
select * from dba_sys_privs where grantee=upper('rolename');
Rails2.2错误 500 Internal Server Error
只需将route.rb文件中的map.root :controller => :products 改为 map.root :controller => "products",重启服务即可.
Rails2.2.2创建数据库时utf8_general_ci错误
最近将Rails的版本更新到了2.2.2,顺利更新完成之后准备做一个Demo,然后当执行rake db:create命令创建数据库时,却报了如下错误:
乍一看好像和什么字符集有关,弄了一下午也没解决.昨天不经意间将database.yml中的localhost换成127.0.0.1,竟然成功创建了,具体就不知道是什么原因了.只记得更新以前曾安装了windows版的Oracle11g,那时新建了一个"loopback adapter"网络连接,不知道和这有没有关系...
Couldn't create database for {"encoding"=>"utf8", "username"=>"root", "adapter"=
>"mysql", "host"=>"localhost", "password"=>nil, "database"=>"atod_development",
"pool"=>5}, charset: utf8, collation: utf8_general_ci (if you set the charset ma
nually, make sure you have a matching collation)
乍一看好像和什么字符集有关,弄了一下午也没解决.昨天不经意间将database.yml中的localhost换成127.0.0.1,竟然成功创建了,具体就不知道是什么原因了.只记得更新以前曾安装了windows版的Oracle11g,那时新建了一个"loopback adapter"网络连接,不知道和这有没有关系...
订阅:
博文 (Atom)