{"id":13351,"date":"2019-04-01T21:55:11","date_gmt":"2019-04-01T21:55:11","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13351"},"modified":"2019-04-01T21:55:11","modified_gmt":"2019-04-01T21:55:11","slug":"how-to-install-countly-analytics-in-centos-and-debian-based-systems","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/how-to-install-countly-analytics-in-centos-and-debian-based-systems\/","title":{"rendered":"How to Install Countly Analytics in CentOS and Debian Based Systems"},"content":{"rendered":"<p><strong>Countly<\/strong>\u00a0is a feature-rich, open source, highly-extensible real-time mobile &amp; web analytics, push notifications and crash reporting software powering more than 2.5k web sites and 12k mobile applications.<\/p>\n<p>It works in a client\/server model; the server gathers data from mobile devices and other Internet-connected devices, while the client (mobile, web or desktop SDK) displays this information in a format which analyzes application usage and end-user behavior.<\/p>\n<p>Watch a 1 minute video introduction to Countly.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/htKeh9bsZwA\" width=\"720\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h4>Countly Analytics Features:<\/h4>\n<ul>\n<li>Supports for centralized management.<\/li>\n<li>Powerful dashboard user interface (supports multiple, custom and API dashboards).<\/li>\n<li>Provides user, application and permission management functionalities.<\/li>\n<li>Offers multiple application support.<\/li>\n<li>Supports for reading \/ writing APIs.<\/li>\n<li>Supports a variety of plugins.<\/li>\n<li>Offers analytics features for mobile, web and desktop.<\/li>\n<li>Supports crash reporting for iOS and Android and error reporting for Javascript.<\/li>\n<li>Supports for rich and interactive push notifications for iOS and Android.<\/li>\n<li>Also supports for custom email reporting.<\/li>\n<\/ul>\n<h4>Requirements<\/h4>\n<p>Countly can be easily installed via beautiful installation script on a freshly installed CentOS, RHEL, Debian and Ubuntu systems without any services listening on port\u00a0<strong>80<\/strong>\u00a0or\u00a0<strong>443<\/strong>.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/centos-7-3-installation-guide\/\" target=\"_blank\" rel=\"noopener\">Installation of CentOS 7 Minimal<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/red-hat-enterprise-linux-7-3-installation-guide\/\" target=\"_blank\" rel=\"noopener\">Installation of RHEL 7 Minimal<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/installation-of-debian-9-minimal-server\/\" target=\"_blank\" rel=\"noopener\">Installation of Debian 9 Minimal<\/a><\/li>\n<\/ol>\n<p>In this article, we will guide you on how to install and manage\u00a0<strong>Countly Analytics<\/strong>\u00a0from the command line in CentOS and Debian based systems.<\/p>\n<h3>Step 1: Install Countly Server<\/h3>\n<p><strong>1.<\/strong>\u00a0Luckily, there is an installation script prepared for you which will install all the dependencies as well as\u00a0<strong>Countly<\/strong>\u00a0server on your system.<\/p>\n<p>Simply download the script using the\u00a0<a href=\"https:\/\/www.tecmint.com\/10-wget-command-examples-in-linux\/\" target=\"_blank\" rel=\"noopener\">wget command<\/a>\u00a0and run it thereafter as follows.<\/p>\n<pre># wget -qO- http:\/\/c.ly\/install | bash\r\n<\/pre>\n<p><strong>Important<\/strong>: Disable SELinux on CentOS or RHEL if it\u2019s enabled. Countly will not work on a server where SELinux is enabled.<\/p>\n<p>Installation will take between 6-8 minutes, once complete open the URL from a web browser to create your admin account and login to your dashboard.<\/p>\n<pre>http:\/\/localhost \r\nOR\r\nhttp:\/\/SERVER_IP\r\n<\/pre>\n<div id=\"attachment_26240\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Create-Countly-Admin-Account.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26240\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Create-Countly-Admin-Account.png\" sizes=\"auto, (max-width: 887px) 100vw, 887px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Create-Countly-Admin-Account.png 887w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Create-Countly-Admin-Account-768x613.png 768w\" alt=\"Create Countly Admin Account\" width=\"887\" height=\"708\" aria-describedby=\"caption-attachment-26240\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26240\" class=\"wp-caption-text\">Create Countly Admin Account<\/p>\n<\/div>\n<p><strong>2.<\/strong>\u00a0You will land in the interface below where you can add an App to your account to start collecting data. To populate an app with random\/demo data, check the option \u201c<strong>Demo data<\/strong>\u201d.<\/p>\n<div id=\"attachment_26241\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Countly-Add-App.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26241\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Countly-Add-App.png\" sizes=\"auto, (max-width: 1069px) 100vw, 1069px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Countly-Add-App.png 1069w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Countly-Add-App-768x520.png 768w\" alt=\"Countly Add App\" width=\"1069\" height=\"724\" aria-describedby=\"caption-attachment-26241\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26241\" class=\"wp-caption-text\">Countly Add App<\/p>\n<\/div>\n<p><strong>3.<\/strong>\u00a0Once the app has been populated, you will get the overview of the test app as shown. To manage applications, users plugins etc, click on the\u00a0<strong>Management Menu<\/strong>\u00a0item.<\/p>\n<div id=\"attachment_26242\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Countly-App-analytics.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26242\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Countly-App-analytics.png\" sizes=\"auto, (max-width: 1179px) 100vw, 1179px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Countly-App-analytics.png 1179w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Countly-App-analytics-768x541.png 768w\" alt=\"Countly App Analytics\" width=\"1179\" height=\"830\" aria-describedby=\"caption-attachment-26242\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26242\" class=\"wp-caption-text\">Countly App Analytics<\/p>\n<\/div>\n<h3>Step 2: Manage Countly From Linux Terminal<\/h3>\n<p><strong>4.<\/strong>\u00a0Countly ships in with several commands to manage the process. You can execute most of the tasks via Countly user interface, but the countly command which can be run in the following syntax \u2013 does the needful for command line geeks.<\/p>\n<pre>$ sudo countly version\t\t#prints Countly version\r\n$ sudo countly start  \t\t#starts Countly \r\n$ sudo countly stop\t  \t#stops Countly \r\n$ sudo countly restart  \t#restarts Countly \r\n$ sudo countly status  \t        #used to view process status\r\n$ sudo countly test \t\t#runs countly test set \r\n$ sudo countly dir \t\t#prints Countly is installed path\r\n<\/pre>\n<h3>Step 3: Backup and Restore Countly<\/h3>\n<p><strong>5.<\/strong>\u00a0To configure automatic backups for Countly, you can run\u00a0<strong>countly backup<\/strong>\u00a0command or assign a cron job that runs every day or week. This cron job ideally backup\u00a0<strong>Countly<\/strong>\u00a0data to a directory of your choice.<\/p>\n<p>The following command backup Countly database, Countly configuration &amp; user files (e.g app images, user images, certificates, etc).<\/p>\n<pre>$ sudo countly backup \/var\/backups\/countly\r\n<\/pre>\n<p>Additionally you can back up files or database separately by executing.<\/p>\n<pre>$ sudo countly backupdb \/var\/backups\/countly\r\n$ sudo countly backupfiles \/var\/backups\/countly\r\n<\/pre>\n<p><strong>6.<\/strong>\u00a0To restore Countly from backup, issue the command below (specify the backup directory).<\/p>\n<pre>$ sudo countly restore \/var\/backups\/countly\r\n<\/pre>\n<p>Likewise restore only files or database separately as follows.<\/p>\n<pre>$ sudo countly restorefiles \/var\/backups\/countly\r\n$ sudo countly restoredb \/var\/backups\/countly\r\n<\/pre>\n<h3>Step 4: Upgrade Countly Server<\/h3>\n<p><strong>7.<\/strong>\u00a0To initiate an upgrade process, run the command below which will run\u00a0<strong>npm<\/strong>\u00a0to install any new dependencies, if any. It will also run\u00a0<strong>grunt dist-all<\/strong>\u00a0to minify all files and create production files from them for enhanced effective loading.<\/p>\n<p>And lastly restarts Countly\u2019s\u00a0<strong>Node.js<\/strong>\u00a0process to effect new files changes during the two previous processes.<\/p>\n<pre>$ sudo countly upgrade \t\r\n$ countly usage \r\n<\/pre>\n<p>For more information visit official site:\u00a0<a href=\"https:\/\/github.com\/countly\/countly-server\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/github.com\/countly\/countly-server<\/a><\/p>\n<p>In this article, we guided you on how to install and manage\u00a0<strong>Countly Analytics<\/strong>\u00a0server from the command line in CentOS and Debian based systems. As usual, send us your queries or thoughts concerning this article via the response form below.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/install-countly-analytics-in-centos-and-ubuntu\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Countly\u00a0is a feature-rich, open source, highly-extensible real-time mobile &amp; web analytics, push notifications and crash reporting software powering more than 2.5k web sites and 12k mobile applications. It works in a client\/server model; the server gathers data from mobile devices and other Internet-connected devices, while the client (mobile, web or desktop SDK) displays this information &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/how-to-install-countly-analytics-in-centos-and-debian-based-systems\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Install Countly Analytics in CentOS and Debian Based Systems&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13351","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=13351"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13351\/revisions"}],"predecessor-version":[{"id":13352,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13351\/revisions\/13352"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}