sh dev_installs.sh

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh dev_installs.sh相关的知识,希望对你有一定的参考价值。

# silver searcher
sudo apt-get install -y silversearcher-ag

# rabbitvcs
sudo add-apt-repository -y ppa:rabbitvcs/ppa
sudo apt-get update
sudo apt-get install -y rabbitvcs-nautilus3 rabbitvcs-cli rabbitvcs-core rabbitvcs-gedit

# couchbase
sudo apt-get install -y libssl0.9.8
wget http://packages.couchbase.com/releases/2.2.0/couchbase-server-community_2.2.0_x86_64.deb
sudo dpkg -i couchbase-server-community_2.2.0_x86_64.deb
# open http://127.0.0.1:8091/ and configure it

#memcached
sudo apt-get install -y libevent-dev
wget http://www.memcached.org/files/memcached-1.4.21.tar.gz
tar -zxvf memcached-1.x.x.tar.gz
pushd memcached-1.4.21
./configure && make && make test && sudo make install
popd

# mongodb 2.4.13
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install mongodb-10gen=2.4.13

# robomongo
wget http://robomongo.org/files/linux/robomongo-0.8.3-x86_64.deb
sudo dpkg -i robomongo-0.8.3-x86_64.deb

# apache activemq
wget http://apache.spd.co.il/activemq/5.11.1/apache-activemq-5.11.1-bin.tar.gz
tar zxvf apache-activemq-5.11.1-bin.tar.gz
sudo mv ./apache-activemq-5.11.1/ /etc/apachemq
sudo chmod +x /etc/apachemq/bin/activemq
sudo ln -sf /etc/activemq/bin/activemq /etc/init.d/

# now you can start the activemq as a service like so:
# service activemq start

# for more information about starting as a service (daemon), see the following links:
# http://www.jmkg.co.uk/2010/08/31/installing-activemq-on-ubuntu/
# http://activemq.apache.org/unix-service.html
# http://activemq.apache.org/getting-started.html#GettingStarted-StartingActiveMQ
# http://stackoverflow.com/questions/11231640/activemq-will-not-start-on-my-ubuntu-vm

# apache tomcat 7.0.56
wget http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.56/bin/apache-tomcat-7.0.56.tar.gz
tar zxvf apache-tomcat-7.0.56.tar.gz 
sudo mv apache-tomcat-7.0.56 /etc/tomcat
echo 'export CATALINA_HOME="/etc/tomcat"' >> ~/.bashrc
source ~/.bashrc
sudo apt-get install -y libcap-dev
pushd $CATALINA_HOME/bin
tar xvfz commons-daemon-native.tar.gz
cd commons-daemon-1.0.x-native-src/unix
./configure
make
cp jsvc ../..
popd

# to start tomcat:
# $CATALINA_HOME/bin/startup.sh
# to stop tomcat:
# $CATALINA_HOME/bin/shutdown.sh

# nodejs
sudo apt-get install -y nodejs npm
sudo npm install grunt -g
sudo npm install grunt-cli -g

# ant
sudo apt-get install -y ant
echo 'export ANT_HOME="/usr/share/ant"' >> ~/.bashrc
echo 'export PATH="ANT_HOME/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

# maven
sudo apt-get install -y mvn
echo 'export M2_HOME="/usr/share/maven"' >> ~/.bashrc
echo 'export PATH="M2_HOME/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

# mount for our NAS
sudo apt-get install -y cifs-utils
sudo mkdir -p /mnt/lspub
# run, but you need to provide the password
# mount.cifs -o user=ron //nas1/public /mnt/lspub
# another solution is pam_mount, but it takes a lot of effort to config:
# http://buechse.de/HOWTO/samba_pam_mount_sshd/

以上是关于sh dev_installs.sh的主要内容,如果未能解决你的问题,请参考以下文章

如何使我的命令行在具有扩展名(.sh)和名称如“weird.sh.sh.sh”的文件上工作

sh sh_template.sh

sh sh.sh

Linux下面如何运行 SH文件

配置告警系统主脚本main.sh mon.sh load.sh 502.sh disk.sh

shell 脚本各种执行方式(source ./*.sh, . ./*.sh, ./*.sh)的区别