Created
November 7, 2011 09:00
-
-
Save henrydjacob/1344501 to your computer and use it in GitHub Desktop.
Centos - Rails 3 development environment - memcached, redis, postgres, git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root - admin123 | |
developer - admin123 | |
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm | |
yum install --enablerepo=webtatic git | |
sudo yum install curl | |
sudo su - | |
groupadd rvm | |
usermod -a -G rvm root | |
usermod -a -G rvm developer | |
logout | |
sudo bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) | |
logout | |
Close out your current shell or terminal session and open a new one. You may attempt reloading your .bash_profile with the following command: | |
source .bash_profile | |
sudo yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel | |
sudo rvm install 1.9.2 | |
rvm --default use 1.9.2 | |
gem install rails | |
yum install subversion | |
yum install postgresql postgresql-server postgresql-contrib | |
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm | |
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm | |
yum install memcached | |
#redit | |
yum install make gcc wget | |
cd /opt/ | |
mkdir /opt/redis | |
wget http://redis.googlecode.com/files/redis-2.2.2.tar.gz | |
tar -zxvf /opt/redis-2.2.2.tar.gz | |
cd /opt/redis-2.2.2/ | |
make | |
make install | |
wget https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server | |
sed -i "s/usr\/local\/sbin\/redis/usr\/local\/bin\/redis/" redis-server | |
chmod u+x redis-server | |
mv redis-server /etc/init.d | |
/sbin/chkconfig --add redis-server | |
/sbin/chkconfig --level 345 redis-server on | |
/sbin/service redis-server start | |
yum install postgresql-devel | |
gem install pg | |
su postgres | |
createdb myproject_development | |
psql myproject_development | |
CREATE ROLE myproject_user WITH SUPERUSER LOGIN PASSWORD 'admin123'; | |
gem install dm-postgres-adapter | |
gem install data_mapper | |
gem install subdomain-fu | |
gem install devise | |
gem install rspec | |
gem install rspec-rails | |
gem install cucumber | |
gem install memcache-client | |
chkconfig postgresql-9.1 on | |
______________________ | |
http://blog.blenderbox.com/2011/01/07/installing-rvm-ruby-rails-passenger-nginx-on-centos/ | |
http://library.linode.com/databases/redis/centos-5#sph_download-and-compile-software | |
http://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ | |
http://www.if-not-true-then-false.com/2010/howto-install-postgresql-8-4-database-server-on-centos-fedora-red-hat/ | |
http://www.ebrueggeman.com/blog/install-redis-centos-56 | |
http://library.linode.com/databases/redis/centos-5#sph_download-and-compile-software | |
https://github.com/pboling/subdomain-fu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment