So I recently installed Cassandra on OSX. I have it in my /usr/bin/ file. In order to start cassandra though I have to be in the /usr/bin/apache-cassandra-1.2.1/ directory (or specify the path). How can I create a command so that no matter where I am in the system I can just type 'cassandra' and have it run Cassandra?
Asked
Active
Viewed 37 times
0
/usr/bin/apache-cassandra-1.2.1/to your$PATH– Nifle Feb 12 '13 at 15:43~/.bashrc: `alias cassandra='/usr/bin/apache-cassandra-1.2.1/cassandra'. – terdon Feb 12 '13 at 16:04