2013年9月14日

Rails: could not connect to database postgres: FATAL: Peer authentication failed for user "username"

摘要: /var/lib/pgsql/9.2/data/pg_hba.conf打开之后找到local all postgres/all peer改成local all postgres trust保存之后重新加载文件sudo /etc/init.d/postgresql reload 阅读全文

posted @ 2013-09-14 21:56 小浪鼓 阅读(1464) 评论(0) 推荐(0) 编辑

CentOS 安装Sqlite3

摘要: wget http://www.sqlite.org/sqlite-autoconf-3070500.tar.gztar xvzf sqlite-autoconf-3070500.tar.gzcd sqlite-autoconf-3070500./configuremakesudo make installsudo yum install sqlite-develsudo gem install sqlite3-ruby 阅读全文

posted @ 2013-09-14 04:10 小浪鼓 阅读(8039) 评论(0) 推荐(0) 编辑

CentOS 安装Passenger

摘要: gem install passenger查看路径passenger-config --rootpassenger-install-apache2-moduleps auxw | grep flying-passengerkill PID_OF_FLYING_PASSENGER重新启动web server 比如 apachepassenger-memory-statshttp://www.modrails.com/documentation/Users%20guide%20Apache.html 阅读全文

posted @ 2013-09-14 03:32 小浪鼓 阅读(741) 评论(0) 推荐(0) 编辑

编译安装Ruby 1.9.3 安装CentOS

摘要: 1. 准备需要的安装的东西yum -y install make gcc openssl-devel zlib-devel gcc gcc-c++ make autoconf readline-devel curl-devel expat-devel gettext-devel ncurses-devel sqlite3-devel mysql-devel httpd-devel wget which2 下载源文件cd /usr/srcwget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gztar zxf yaml-0.1.4.tar. 阅读全文

posted @ 2013-09-14 03:10 小浪鼓 阅读(5953) 评论(0) 推荐(0) 编辑

CentOS 添加环境变量

摘要: 1.修改环境变量需要修改/etc/profileexport PATH="$PATH:/usr/src/ruby-1.9.3-p0/ruby:/usr/local/bin/gem"2.单独对用户修改 ~/.bashrc, 只对这个用户有效,退出用户重新登录3 用命令查看添加结果echo $PATHusage: service 的目录/sbin/service添加 /sbin 目录,然后切换用户就可以添加到其中了 阅读全文

posted @ 2013-09-14 03:07 小浪鼓 阅读(1207) 评论(0) 推荐(0) 编辑

CentOS 安装PostregSQL9.2 同时出现pg安装错误

摘要: 错误:Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking for pg_config... noNo pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_configchecking for libpq-fe.h... noCan't find th... 阅读全文

posted @ 2013-09-14 02:27 小浪鼓 阅读(737) 评论(0) 推荐(0) 编辑

导航