Article From:https://www.cnblogs.com/mutong1228/p/9127495.html

zookeeperinstall
  Configuring hosts
  Download WGet http://apache.fayea.com/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz
  mv zookeeper-3.4.6 zookeeper
  cd /opt/zookeeper
  Create a directory
  mkdir data
  mkdir logs
  A copy of the zoo_sample.cfg file copy under the zookeeper/conf directory.
  cp zoo_sample.cfg zoo.cfg
  Modify Zoop
  dataDir=/opt/zookeeper/data
  dataLogDir=/opt/zookeeper/logs
  clientPort=2181
  server.1=Hadoop-host:2888:3888
  Create myid under the /opt/zookeeper/data file
  vi myid
  1
  Add environment variables
  export ZOOKEEPER_HOME=/opt/zookeeper
  export PATH=$ZOOKEEPER_HOME/bin:$PATH
  Start and test zookeeper
  zkServer.sh start
  Look at the process JPS
  [root@Hadoop-host etc]# jps
   7315 Jps
   1851 QuorumPeerMain
  View state
  zkServer.sh status
  View the output information
  tail -500f zookeeper.out
  Stop the zookeeper process
  zkServer.sh stop

activemqinstall
  start-up
  cd /opt/activemq/bin
  ./activemq start
  http://192.168.153.147:8161
  The default username and password: admin admin

redisinstall
Compiling and installing the required packages
yum install gcc tcl
Download WGet https://github.com/antirez/redis/archive/3.0.0-rc5.tar.gz
mv redis-3.0.0-rc5 redis
cd redis
Install (use PREFIX to specify installation directory)
make PREFIX=/opt/redis install
See if CD bin has been successfully installed
redis-benchmark  redis-check-aof  redis-check-dump  redis-cli  redis-sentinel  redis-server
1. Configuring redis as a service
  redisThe startup script is /opt/redis/utils/redis_init_script
  Assign the startup script to /etc/rc.d/init.d/ and name it redis.
  cp /opt/redis/utils/redis_init_script /etc/rc.d/init.d/redis
  Editor redis
  Add #chkconfig: 23458090 after the first line
  EXEC=/usr/local/bin/redis-server Change to EXEC=/opt/redis/bin/redis-server
  CLIEXEC=/usr/local/bin/redis-cli Change to CLIEXEC=/opt/redis/bin/redis-cli
  Create the redis configuration file directory
  mkdir /opt/redis/conf
  cp redis.conf conf/6379.conf
  CONF=”/etc/redis/${REDISPORT}.conf” Change to CONF= “/opt/redis/conf/${REDISPORT}.conf”
  Change the redis open command and execute the later operation mode.
  The twentieth row $EXEC $CONF is changed to $EXEC $CONF & the function of “&amp” is to turn the service to the background operation.
  The configuration is completed and redis is registered as a service
  chkconfig –add redis
  Add redis to the environment variable
  export PATH=$PATH:/opt/redis/bin
  source /etc/profile
2. Start the redis service
  service redis start
  Using redis related commands
  [root@Hadoop-host etc]# redis-cli
   127.0.0.1:6379> set liusw LiuSongWei
   OK
   127.0.0.1:6379> get liusw
   “LiuSongWei”
   service redis start

tomcatinstall
  Download address https://tomcat.apache.org/download-70.cgi
  Delete the /opt/tomcat7/webapps directory file
  yum install -y unzip zip
  Unzip and name the directory as ROOT
  unzip dubbo-admin-2.5.3.war -d ROOT
  cd ROOT/WEB-INF/dubbo.properties
  dubbo.registry.address=zookeeper://192.168.153.147:2181
  dubbo.admin.root.password=root
  dubbo.admin.guest.password=guest
  Start http://192.168.153.147:8080/
       Enter the username and password: guest/guest
  Deploying and deploying the Tomcat start of the Dubbo control console
  Compile VI /etc/rc.local file, add
  su – opt -c ‘/opt/tomcat7/bin/startup.sh’
 

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *