摘要: ===========nginx setup===========Here's how to install nginx -- the stable branch, packaged by the upstreamnginx developers/company -- on Ubuntu lucid. See below at the end for how touninstall other versions of nginx that we previously used.for reference: http://www.nginx.org/en/download.htmlCut 阅读全文
posted @ 2012-05-15 13:14 kamechen 阅读(308) 评论(0) 推荐(0) 编辑
摘要: When trying to install nginx in debian, you may encounter this error:W: GPG error: http://nginx.org squeeze Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62The solution is this:gpg --keyserver keyserver.ubuntu.com --recv-key A 阅读全文
posted @ 2012-05-15 13:02 kamechen 阅读(683) 评论(0) 推荐(0) 编辑
摘要: apt中GPG错误的解决加入ppa源后,出现了GPG错误GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CB2F6C86F77B1CA9 Google了一下后,解决办法如下:gpg --keyserver keyserver.ubuntu.com --recv CB2F6C86F77B1CA9gpg --export --armor C 阅读全文
posted @ 2012-05-15 11:21 kamechen 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 我们在application.rb中会使用config 进行如下类似的设置config.i18n.default_locale = 'zh-CN'# Configure the default encoding used in templates for Ruby 1.9.config.encoding = "utf-8"# Configure sensitive parameters which will be filtered from the log file.config.filter_parameters += [:password]而且在很多的r 阅读全文
posted @ 2012-05-15 10:22 kamechen 阅读(352) 评论(0) 推荐(0) 编辑