Software Description Linux virtual machine installed

Software Description Linux virtual machine installed

The first virtual machine 192.168.72.201 in / usr / local / directory decentralization bit software:
drwxr-XR-the X-3 root root 4096 19:16 6 Yue 14 the Data storing data (data currently only put a zookeeper's)
drwxr-XR -x 3 root root 4096 dated. 5 03:32 27 JDK storing the java virtual machine
drwxr-xr-x 3 root root 4096 dated. 5 03:41 27 MySQL storage database
drwxr-xr-x 4 root root 4096 June 14. 19 : 55 solr stored for solr cluster and individually equipped with a Tomcat
drwxr XR-2 X-dated the root the root. 6 4096 11:07 10 Spider stored java package reptiles
drwxr-xr-x 4 root root 4096 at 19:24 on June 15 tomcat stored for two tomca, a project with ssm, a dubbo with
drwxr-xr-x 3 root root 4096 19:05 6 Yue 14 ZooKeeperStoring a zookeeper cluster

The so-called cluster is three virtual machines are equipped with the same software, start the cluster shutdown scripts in the first virtual machine.

The second virtual machine 192.168.72.202 in / usr / local / directory decentralization bit software:

drwxr-xr-x 3 root root 4096 19:16. 6 dated 14 Data store data (data currently put the zookeeper)
drwxr-xr-x 3 root root 4096 10:20. 6 dated. 4 JDK storing the java virtual machine
drwxr-xr-x 12 root root 4096 dated. 6 04:18. 3 nginx stored for nginx software (High Performance HTTP and reverse proxy web server)
drwxr XR-4096-X. 5 the root the root. 6 dated 02:46. 3 Redis storage redis the software (the index database)
drwxr XR-4096-X. 3 the root the root. 6 dated 14 20:11 solr stored for solr cluster and individually equipped with a Tomcat
drwxr XR-2 X-10 June 4096 the root the root 11: 07 Spider stored for reptiles java package
drwxr-xr-x 3 root root 4096 19:31 6 Yue 14 zookeeper store a zookeeper cluster

The third virtual machine 192.168.72.203 in / usr / local / directory decentralization bit software:
drwxr-XR-the X-3 root root 4096 19:16 6 Yue 14 the Data storing data (data currently only put a zookeeper's)
drwxr-XR -x 3 root root 4096 18:42 6 Yue 4 the JDK store the java virtual machine
drwxr-xr-x 3 root root 4096 20:10 6 Yue 14 solr stored for solr cluster and is equipped with a separate Tomcat
drwxr-XR-the X- 2 root root 4096 12:49. 6 dated 10 Spider stored java package reptiles
drwxr-xr-x 3 root root 4096 18:53. 6 dated. 4 tomcat this tomcat for previous project (now has been useless)
drwxr-XR. 3-X root root 4096 19:33 6 Yue 14 zookeeper store a zookeeper cluster

Three virtual machines comparison:

Three are: the Data, the JDK, Solr, Spider, zoopkeeper
first exclusive: MySQL (database), Tomcat (two, one ssm Framework Program, a dubbo Management Center)
a second proprietary : nginx (high-performance HTTP and reverse proxy web server), Redis (index base)
a third exclusive: Tomcat (storing previous ssm project, has now useless)

Linux Software Description : kill the process kill -Q 2072

A, mysql
start: console input mysql -rroot -proot
closed: Ctrl-C - exit!
View process: ps -ef | grep mysql
two, Tomcat
startup file: /usr/local/tomcat/apache-tomcat-7.0. 57 / bin / startup.sh
close the file: /usr/local/tomcat/apache-tomcat-7.0.57/bin/shutdown.sh
profile: /usr/local/tomcat/apache-tomcat-7.0.57conf/server. xml
focus modify three port numbers: 8009,8005, 8080 (default)
project file: /usr/local/tomcat/apache-tomcat-7.0.57/webapps/fizz_ssm
View process: ps -ef | grep tomcat
three, nginx
start : / usr / local / nginx / sbin / nginx -c /usr/local/nginx/conf/nginx.conf
View process: ps -ef | grep nginx
kill the process: kill -Q 2072
four, redis
start the service: / usr / local / redis / bin / redis -server /etc/redis/redis.conf ( later according to their predetermined position profile)
Start the client: / usr / local / redis / bin / redis-cli -h 192.168.72.202
profile: /etc/redis/redis.conf or /usr/local/redis/redis.conf
five, zookeeper cluster
startup script: /usr/local/zookeeper/zookeeper-3.4.9/bin/startZKCloud.sh
close the script: /usr/local/zookeeper/zookeeper-3.4.9/bin/shutdownZKCloud.sh
configuration file / usr / local / zookeeper / zookeeper- 3.4.9 / conf / zoo.cfg
tail add the following:
server.1 = hadoop1: 2887: 3887
server.2 = hadoop2: 2887: 3887
server.3 = hadoop3: 2887: 3887
six, solr cluster (built-tomcat)
startup script : /usr/local/solr/solr/bin/startSolrCloud.sh
close the script: /usr/local/solr/solr/bin/shutdownSolrCloud.sh
profile: solr detailed in the album
wrote the script file without having to manually start the tomcat

1、'dubbo管理中心' 有一台tomcat 放在/usr/local/tomcat/dubbo-tomcat-9000下面
2、在/usr/local/tomcat/dubbo-tomcat-9000/conf目录下我们 
    '改了'server.xml配置文件的三个端口号如下:8010,8006, 9000
3、启动tomcat:/usr/local/tomcat/dubbo-tomcat-9000/bin/startup.sh
4、关闭tomcat:/usr/local/tomcat/dubbo-tomcat-9000/bin/shutdown.sh
5、进入dubbo管理中心:
    浏览器输入:192.168.72.201:9000/dubbo-admin 即进入dubbo首页
6、看/usr/local/tomcat/dubbo-tomcat-9000/webapps/dubbo-admin   
    dubbo项目放在tomcat的webapps目录下 所以上面第 3 点的访问 就是访问dubbo-admin里面的网站


1、'三大框架的项目' 有一台tomcat 放在/usr/local/tomcat/apache-tomcat-7.0.57下面
2、在/usr/local/tomcat/tomcat/apache-tomcat-7.0.57/conf目录下我们 
    '并没有'改server.xml配置文件的三个端口号如下:8009,8005, 8080
3、启动tomcat:/usr/local/tomcat/tomcat/apache-tomcat-7.0.57/bin/startup.sh
4、关闭tomcat:/usr/local/tomcat/tomcat/apache-tomcat-7.0.57/bin/shutdown.sh
7、进入day28_ssm项目:
    浏览器输入:192.168.72.201:8080/day28_ssm 进入项目首页
8、看/usr/local/tomcat/apache-tomcat-7.0.57/webapps/fizz_ssm
    这台tomcat部署了三大框架的项目

2019-06-16_011521

2019-06-16_0119472019-06-16_0120242019-06-16_011930

Guess you like

Origin www.cnblogs.com/-xiaoyu-/p/11032107.html