Skip to content

Instantly share code, notes, and snippets.

@ryanguill
ryanguill / centos-install-instructions.md
Last active December 14, 2015 21:09
Installation instructions for CentOS 6.3 into virtual box, along with python 2.7, rabbitmq, redis and postgresql.Sets up samba, iptables and shows you how to create OS level users. Also instructions for installing Adobe ColdFusion and Railo.

CentOS 6.x Install Instructions

####Preface

These are my own instructions that I have decided to document as I have gone along. I have put them out there in case others may find them useful, but I make no guarantees on their accuracy, or even if any of it is a good idea! I am no linux/rabbitmq/redis/postgres/tomcat/etc expert, hence why I need these instructions. These are setups for what I needed at the time I wrote them, they may not be appropriate for you. If you have suggestions on how to improve any of this, or notice anything wrong, please let me know / fork the guide and make the changes.

When this guide was started Cent 6.3 was the latest version. I have since used the same instructions for 6.4 and 6.5 without issue. Just update any references to 6.3 to the latest version when you use this guide.

Be careful copying and pasting commands. Make sure before you do that none of the filenames or versions have changed since the guide was written. It is common for the

with typenames as (
select
id
, 'event' kind
, eventname name
from events
union all
select
@ryanguill
ryanguill / gist:5873218
Created June 27, 2013 01:11
for xml path example
use tempdb;
IF OBJECT_ID('tempdb..#customerPreferences') IS NOT NULL
DROP TABLE #customerPreferences
create table #customerPreferences ( username varchar(50), pref varchar(50) );
select * from #customerPreferences
<cfset t = new Test("bar") />
<cfdump var="#t#"/>
<cfset t.setFoo("public setter") />
<cfdump var="#t#" />

Preface

This guide is one section of a larger guide to installing a cent 6.x server in virtual box for development purposes with different applications. The top level guide with links to all of the sections is here: https://gist.github.com/ryanguill/5149058 Some instructions in this guide may assume a configuration from other parts of the guide.

#Install rabbitmq

Instructions taken from here: http://www.rabbitmq.com/install-rpm.html

Make sure you are root, if not

Preface

This guide is one section of a larger guide to installing a cent 6.x server in virtual box for development purposes with different applications. The top level guide with links to all of the sections is here: https://gist.github.com/ryanguill/5149058 Some instructions in this guide may assume a configuration from other parts of the guide.

#Install Redis

Instructions taken loosely from here: http://www.ebrueggeman.com/blog/install-redis-centos-56

See also these instructions: http://library.linode.com/databases/redis/centos-5 ... might be good to create a special user for redis to run as like these instructions talk about.

Preface

This guide is one section of a larger guide to installing a cent 6.x server in virtual box for development purposes with different applications. The top level guide with links to all of the sections is here: https://gist.github.com/ryanguill/5149058 Some instructions in this guide may assume a configuration from other parts of the guide.

Install PostgreSQL

instructions taken (and modified slightly) from here: http://www.davidghedini.com/pg/entry/install_postgresql_9_on_centos and http://www.linuxquestions.org/questions/linux-server-73/change-postgresql-data-directory-649911/

start with a base install snapshot. You can install postgres and rabbitmq or redis on