{"id":16189,"date":"2023-09-19T08:29:08","date_gmt":"2023-09-19T08:29:08","guid":{"rendered":"https:\/\/cloudpap.com\/?p=16189"},"modified":"2023-09-19T08:34:16","modified_gmt":"2023-09-19T08:34:16","slug":"how-to-install-uptime-kuma-on-windows","status":"publish","type":"post","link":"https:\/\/cloudpap.com\/blog\/how-to-install-uptime-kuma-on-windows\/","title":{"rendered":"How To Install Uptime Kuma On Windows"},"content":{"rendered":"\n<p>Did you know you know that Windows can run Uptime Kuma? Let&#8217;s share how to install Uptime Kuma on Windows!<\/p>\n\n\n\n<p>Uptime Kuma is a free and open-source self-hosted monitoring tool. It allows users to track the uptime, response time, and other important metrics of their websites, applications, and servers.<\/p>\n\n\n\n<p>Easy-to-use monitoring tool provides visibility to ups and downs, excellent for home labs and production environments.<\/p>\n\n\n\n<p>Why install Uptime Kuma on Windows?<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Self-control: When you self-host Uptime Kuma, you have complete control over your data and its use. Businesses and organizations need to maintain high security and privacy.<\/li>\n\n\n\n<li>Gain skills while learning to manage it yourself: Installing and managing Uptime Kuma on Windows can help users gain valuable skills and knowledge in server management and monitoring.<\/li>\n\n\n\n<li>Cost savings: Uptime Kuma is free to use, so you can save money on monthly or annual subscription fees for other monitoring services.<\/li>\n\n\n\n<li>Flexibility: Uptime Kuma can monitor various services, including websites, servers, APIs, and Docker containers. It also supports a variety of notification methods so that you can be alerted to any problems quickly and easily.<\/li>\n<\/ul>\n\n\n\n<p>Benefits of using Uptime Kuma:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Easy to use: Uptime Kuma has a simple and intuitive user interface, so it is easy to start even if you have no prior experience with monitoring tools.<\/li>\n\n\n\n<li>Powerful: Uptime Kuma is a powerful monitoring tool that can monitor various services and detect various problems.<\/li>\n\n\n\n<li>Customizable: Uptime Kuma is highly customizable, so you can configure it to meet your needs.<\/li>\n\n\n\n<li>Scalable: Uptime Kuma can be scaled to monitor many services, making it ideal for businesses and organizations of all sizes.<\/li>\n\n\n\n<li>Self-hosted: Uptime Kuma is a self-hosted monitoring tool that gives you complete control over your data. It is crucial for businesses and organizations with high security and privacy needs.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Install Uptime Kuma on Windows:<\/strong><\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/louislam\/uptime-kuma\/wiki\/%F0%9F%94%A7-How-to-Install\" target=\"_blank\" rel=\"noreferrer noopener\">Before installation<\/a>, you need to ensure you have the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Windows server or computer with at least 1 GB of RAM and 10 GB of disk space.<\/li>\n\n\n\n<li>A web server such as IIS or Apache.<\/li>\n\n\n\n<li>A database server such as MySQL or PostgreSQL.<\/li>\n\n\n\n<li>Arch: x64<\/li>\n\n\n\n<li>.NET 4.8 Runtime<\/li>\n\n\n\n<li>Internet connection for initialization (to download Node.js runtime and Uptime Kuma source code)<\/li>\n<\/ul>\n\n\n\n<p>Here is the procedure to follow:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open and run the Command Prompt (CMD) as an administrator. Now navigate into the root directory using this command: <strong><em>cd \/<\/em><\/strong><\/li>\n\n\n\n<li>Use git to clone the repository for uptime Kuma using this command: <strong><em>git clone <\/em><\/strong><a href=\"https:\/\/github.com\/louislam\/uptime-kuma.git\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><em>https:\/\/github.com\/louislam\/uptime-kuma.git<\/em><\/strong><\/a><\/li>\n\n\n\n<li>Change the directory to the Uptime Kuma folder by running the following command: <strong><em>cd .\\uptime-kuma\\<\/em><\/strong><\/li>\n\n\n\n<li>Install the dependencies by running the following command: <strong><em>npm install<\/em><\/strong><\/li>\n\n\n\n<li>Create a database for Uptime Kuma. You can use any preferred database server, such as MySQL or PostgreSQL.<\/li>\n\n\n\n<li>Configure Uptime Kuma. Open the config.sample.js file in a text editor and make the following changes:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><em>Set the database property to the name of your Uptime Kuma database.<\/em><\/strong><\/li>\n\n\n\n<li><strong><em>Set the username and password properties to the credentials for your Uptime Kuma database user.<\/em><\/strong><\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\" start=\"7\">\n<li>Start Uptime Kuma: <strong><em>node server\/server.js<\/em><\/strong><\/li>\n\n\n\n<li>Open a web browser and navigate to http:\/\/localhost:3001. You should see the Uptime Kuma login page.<\/li>\n\n\n\n<li>Create an account and log in.<\/li>\n<\/ol>\n\n\n\n<p>Once logged in, you can add monitors to Uptime Kuma. To do this, click the &#8220;Monitors&#8221; tab and the &#8220;Add Monitor&#8221; button.<\/p>\n\n\n\n<p>You can add websites, servers, APIs, and Docker container monitors. Uptime Kuma is a free, powerful, and flexible monitoring tool that checks your monitors periodically and alerts you of any problems.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Running Kuma on Windows:<\/strong><\/h3>\n\n\n\n<p>Running Uptime Kuma as a service using PM2 is a great way to ensure that the monitoring tool is always running and can be easily managed.&nbsp;<\/p>\n\n\n\n<p>Here are the steps to run <a href=\"https:\/\/www.cloudpap.com\/uptime-kuma-alternative\/\">Uptime Kuma<\/a> as a service using PM2:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install PM2 by running the following command:<strong><em>npm install pm2 -g<\/em><\/strong><\/li>\n\n\n\n<li>Navigate to the Uptime Kuma directory by running the following command: <strong><em>cd \/path\/to\/uptime-kuma<\/em><\/strong><\/li>\n\n\n\n<li>Start Uptime Kuma as a service by running the following command: <strong><em>pm2 start server\/server.js &#8211;name uptime-kuma<\/em><\/strong><\/li>\n\n\n\n<li>Stop Uptime Kuma by running the following command: <strong><em>pm2 stop uptime-kuma<\/em><\/strong><\/li>\n\n\n\n<li>Restart Uptime Kuma by running the following command:<strong><em> pm2 restart uptime-kuma<\/em><\/strong><\/li>\n\n\n\n<li>Run Uptime Kuma at startup by running the following command: <strong><em>pm2 startup<\/em><\/strong><\/li>\n<\/ol>\n\n\n\n<p>It will generate a command you need to run as root to set up PM2 to start Uptime Kuma at boot time.<\/p>\n\n\n\n<p>Running Uptime Kuma as a service using PM2 ensures it&#8217;s always running and easy to manage. Follow the steps to start, stop, restart, and run at startup.<\/p>\n\n\n\n<p><a href=\"https:\/\/cloudpap.com\/moodle-troubleshooting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Troubleshooting common<\/a> installation errors:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Installation failed due to missing dependencies:<\/li>\n<\/ol>\n\n\n\n<p>Ensure that you have installed Git and Node.js.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Error: Cannot connect to database.<\/li>\n<\/ol>\n\n\n\n<p>Solution: Ensure that the Uptime Kuma database is running and that you have entered the correct database credentials in the config.sample.js file.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>Cannot start Uptime Kuma server.<\/li>\n<\/ol>\n\n\n\n<p>Ensure you have run the npm install command to install the Uptime Kuma dependencies.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>Uptime Kuma is not running.<\/li>\n<\/ol>\n\n\n\n<p>Open a PowerShell window as an administrator and run the following command: <strong><em>node server\/server.js<\/em><\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li>Error: Cannot access Uptime Kuma web interface.<\/li>\n<\/ol>\n\n\n\n<p>Solution: Ensure that the Uptime Kuma server is running and that you have entered the correct URL in your web browser.<\/p>\n\n\n\n<p>For help with Uptime Kuma on Windows, ask on Discord or GitHub.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Wrapping up: Install Uptime Kuma on Windows;<\/strong><\/h2>\n\n\n\n<p>Uptime Kuma is a free, open-source, self-hosted monitoring tool for websites, apps, and servers. It tracks uptime, response time, and more.<\/p>\n\n\n\n<p>Features include two-factor auth, export\/import, separate status page, and more. Users must ensure their system meets the prerequisites to install Uptime Kuma on Windows.<\/p>\n\n\n\n<p>Use this guide to run the setup and start Uptime Kuma. Uptime Kuma is now ready for self-hosted monitoring on Windows.&nbsp;<\/p>\n\n\n\n<p>Users have complete control of their data, can customize notifications, and get more features for potentially less investment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did you know you know that Windows can run Uptime Kuma? Let&#8217;s share how to install&#8230;<\/p>\n","protected":false},"author":7,"featured_media":16190,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[1],"tags":[416],"class_list":["post-16189","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-tech","tag-install-uptime-kuma-on-windows"],"_links":{"self":[{"href":"https:\/\/cloudpap.com\/blog\/wp-json\/wp\/v2\/posts\/16189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudpap.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudpap.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudpap.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudpap.com\/blog\/wp-json\/wp\/v2\/comments?post=16189"}],"version-history":[{"count":0,"href":"https:\/\/cloudpap.com\/blog\/wp-json\/wp\/v2\/posts\/16189\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudpap.com\/blog\/wp-json\/wp\/v2\/media\/16190"}],"wp:attachment":[{"href":"https:\/\/cloudpap.com\/blog\/wp-json\/wp\/v2\/media?parent=16189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudpap.com\/blog\/wp-json\/wp\/v2\/categories?post=16189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudpap.com\/blog\/wp-json\/wp\/v2\/tags?post=16189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}