Skip to content

Instantly share code, notes, and snippets.

@lutter
Created September 19, 2013 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lutter/6618013 to your computer and use it in GitHub Desktop.
Save lutter/6618013 to your computer and use it in GitHub Desktop.
Razor server prerequistes on CentOS 6.4
#### Prerequistes
#### there are known better ways to do these
## Install PostgreSQL
$ yum install postgresql-server
$ chkconfig postgresql on
$ service postgresql initdb
$ su - postgres
> vi /var/lib/pgsql/data/pg_hba.conf
Add line 'host all all 127.0.0.1/32 md5' before all others
> createuser -P -SDR razor
> createdb -O razor razor_dev
> createdb -O razor razor_test
> createdb -O razor razor_prd
## Install libarchive
yum -y install libarchive-devel
## Open up port 8080 in firewall
## - not needed if you run a proxy in front of Razor
$ echo '--port=8080:tcp' >> /etc/sysconfig/system-config-firewall
$ lokkit -q
## Create a razor user
$ yum -y install unzip
$ useradd razor
$ su - razor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment