In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Recently, I have just come into contact with and become familiar with countly, and some changes and improvements have been made to the crashes plug-in in countly according to the requirements. This article mainly records the whole process of installing and deploying countly-server using docker containers in windows10, which can be regarded as some simple summary and thinking of myself.
Docker
Docker is an open source application container engine, containers completely use sandboxing mechanism, there is no interface between each other, can help developers safely create, share and run modern applications.
Countly
Countly is an open source data analysis platform, which can collect, display and analyze data from mobile, client and other sources in one stop, and it has many built-in plug-ins, which can be used as a basis for personalized development, or new plug-ins can be completely customized according to business needs.
two。 Install and configure dokcer installation
Doker now supports many platforms, such as linux, windows, DataCenter, Cloud, etc. Installation in windows environment is no different from that of other software, as long as you follow the instructions to complete it step by step. This is the download address of the network disk & extraction code: eumv. Please move to the official website for the latest version.
Image installation and operation
The counltly-server operating environment needs to be under linux, so you need to install the linux image. You can search the dockerhub official website in advance.
This article selects the ubutun image in docker hub, and downloads the latest version by default without specifying the version number.
Enter the installation directory of docker and use the docker command to download ubuntu
/ / download latest ubuntu docker pull ubuntu
Docker runs ubuntu:-i: run interactively,-t: terminal,-p: Port mapping,-v: file directory mapping (windows directory: ubuntu directory)
Docker run-ti-p 6001purl 6001-v / c/countly-server:/countly/countly-server ubuntu bash
Countly-server configuration under ubuntun
Mongodb installation
Method 1 (may lag behind the version of the official website)
Apt-get update apt-get install mongo
Method 2 (download and decompress directly from the official website):
Go to the mongoDB download page and switch to [MongoDB Community Sever] to select the version, operating system, installation package format, etc. The download address will appear below.
# Update apt-get update # download curl apt-get install curl # download mongodb official website corresponding to the linux version of the package get curl-O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-4.2.1.tgz # extract the mongo package tar-zxvf mongodb-linux-x86_64-ubuntu1804-4.2.1.tgz # move the extracted files to the global installation directory mv mongodb -linux-x86_64-ubuntu1804-4.2.1.tgz / usr/local/mongodb # set path path export PATH=/usr/local/mongodb/bin:$PATH
Nodejs installation
Method 1:
Apt-get update apt-get install nodejs
Method 2: download the installation package from the nodejs official website. The specific steps are similar to those of mongodb installation.
Port configuration mongodb: 27017. Dashboard: 6001
Start counlty-server
Multiple command line sessions of database, interface service and dashboard page are involved in the startup process. Here, you can consider using screen to split the screen of multiple windows, so that you can switch freely between multiple sessions.
Apt-get install screen
1.start mongodb (start mongodb):
# New mongodb screen-S mongodb # launch mongodb mongod-- dbpath=/countly/mongodb/data-- logpath=/countly/mongodb/log/mongo.log-- logappend
2.start api (start api)
# create a new api service session screen-S api # go to the countly-server directory cd countly/countly-server # start countly's api interface service DEBUG=development supervisor node api/api.js
3.start dashboard (start dashboard)
# create a new dashboard session screen-S dashboard # go to the countly-server directory cd countly/countly-server # start the countly-server main project NODE_ENV=development supervisor node frontend/express/app.js
4. Browsers access localhost:6001
Summary
The above is the process of docker deployment and running countly-server in win10 introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply you in time. Thank you very much for your support to the website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank 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.