In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to implement apk building based on android-chat to replace java protocol stack development". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Please select any of these account passwords to log in.
Account number: 13800000000, 1380000000113800000002 password: 556677
Android running effect diagram
Deployment description
NOTE: if you only need to deploy chat services on a stand-alone, you only need to deploy push-connect and push-group services
Preparatory work
In order for the script to work properly, first create the following directory / opt/boot on your server. This is the directory where the script automatically finds spring boot projects, and all spring boot projects are stored in this directory. The specific project directory structure is as follows:
Dependent component
Redis
Under the push-connector cluster mode, message push is required. The sub/pub of redis is used to subscribe and publish messages and then push them globally. The cluster mode has now been changed to kafka publish subscription mode.
Zookeeper
Dubbo uses zookeeper as the registry, so you need to install zookeeper
Start and stop service
For example, the startup mode of push-sub is similar to that of others.
# start service. / push-sub start# stop service. / push-sub stopSpringBoot Dubbo service starts
Since dubbo strictly obeys the service dependent startup order, please start the following service in the installation order. This version adds the metric function of dubbo, modifies the dubbo code appropriately, and compiles the dubbo-2.7.2-SNAPSHOT using the code here. You can wait until dubbo-2.7.2 officially releases this function.
Dubbo admin metric
The dubbo admin monitoring project is introduced into this project. Since the official version of dubbo-2.7.2 has not been released, the related projects of dubbo have been modified to adapt to dubbo-metric data statistics. If you encounter errors in the compilation process, you can download the project here to compile locally.
Related projects
Dubbo
Dubbo-springboot-starter
Dubbo-admin
Dubbo project parameter description
Application.properties configures redis and zookeeper addresses
There is no need to use an external configuration center such as nacos,apollo. You need to modify it manually.
Push.redis.address=redis://172.16.46.213:6379
Add push-connector kafka collection support
# # kafka brokerpush.kafka.broker=172.16.177.107:9092
Run mvn clean package-Dmaven.test.skip=true to package springboot jar
The following services can be deployed in clusters if the number of users increases
Start the spring-boot-dubbo-push-subscribe subscription service
/ opt/boot/push-sub ├── jvm.ini ├── push-sub / / executable startup script └── log └── push-sub.log / / store log └── lib └── spring-boot-dubbo-push-subscribe-1.0.0-SNAPSHOT.jar / / runnable jar
Start the spring-boot-dubbo-push-connector link service
/ opt/boot/push-connector ├── jvm.ini ├── push-connector / / executable startup script └── log └── push-connector.log / / └── lib └── spring-boot-dubbo-push-connector-1.0-SNAPSHOT.jar / / runnable jarSpringBoot web project
Start the spring-boot-web-push-api open push service
/ opt/boot/push-api ├── jvm.ini ├── push-api / / executable startup script └── log └── push-api.log / / store log └── lib └── spring-boot-web-push-api-1.0.0-SNAPSHOT.jar / / runnable jar
Start the sping-boot-web-push-group group service
/ opt/boot/push-group ├── jvm.ini ├── push-group / / executable startup script └── log └── push-group.log / / └── lib └── sping-boot-web-push-group-1.0.0-SNAPSHOT.jar / / runnable jar "how to implement apk based on android-chat instead of java stack development" is introduced here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.