Skip to content

Instantly share code, notes, and snippets.

@bugcy013
Created December 29, 2013 17:44
Show Gist options
  • Select an option

  • Save bugcy013/8172791 to your computer and use it in GitHub Desktop.

Select an option

Save bugcy013/8172791 to your computer and use it in GitHub Desktop.
ssh IP -ldeploy
su root
/usr/sbin/visudo
93gg
deploy ALL=(ALL) NOPASSWD: ALL
:wq
##Download to your local system.
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html
##Upload the rpm package to the server.
scp -C jdk-7u9-linux-x64.rpm deploy@IP:/home/deploy
sudo rpm -Uvh jdk-7u9-linux-x64.rpm
vim ~/.bash_profile
ggVG
x
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export JAVA_HOME=/usr/java/default
export PATH=/usr/local/bin:/bin:/usr/bin:/opt/dell/srvadmin/bin:/home/deploy/bin:/bin:/home/deploy/bin:$PATH
export PATH=$PATH:$JAVA_HOME
sudo vim /etc/yum.conf
#exclude=kernel*
:wq
su -c 'rpm -ivh http://mirror.chpc.utah.edu/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm'
cd /etc/yum.repos.d/
sudo wget http://download.opensuse.org/repositories/home:/fengshuo:/zeromq/CentOS_CentOS-5/home:fengshuo:zeromq.repo
cd ~
sudo yum groupinstall 'Development Tools' -y
sudo yum install -y git uuid-devel zeromq zeromq-devel
mkdir -p ~/src /tmp/storm
cd ~/src
git clone https://github.com/nathanmarz/jzmq.git
cd jzmq/
sudo ./autogen.sh
./configure
make
sudo make install
cd ~/src
wget https://github.com/downloads/nathanmarz/storm/storm-0.7.0.zip
unzip storm-0.7.0.zip
vim storm-0.7.0/conf/storm.yaml
ggVG
x
storm.local.dir: "/tmp/storm"
storm.zookeeper.servers:
- "172.30.0.160"
nimbus.host: "172.30.0.160"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment