{"id":2149,"date":"2024-12-03T15:17:06","date_gmt":"2024-12-03T15:17:06","guid":{"rendered":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?p=2149"},"modified":"2024-12-10T08:27:54","modified_gmt":"2024-12-10T08:27:54","slug":"what-is-pm2-and-how-to-use-it-html","status":"publish","type":"post","link":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/421\/what-is-pm2-and-how-to-use-it.html","title":{"rendered":"What is PM2 and How Can You Use it?"},"content":{"rendered":"\n<p>Have you ever faced challenges managing your Node.js application, especially keeping it running smoothly without interruptions?<\/p>\n\n\n\n<p>That\u2019s where PM2 comes in!<\/p>\n\n\n\n<p>In the world of modern web applications, ensuring seamless performance and uninterrupted uptime is critical. For developers working with Node.js, managing processes manually can be daunting and error-prone.<\/p>\n\n\n\n<p>PM2 is like a smart assistant for your Node.js apps\u2014it helps you start, stop, monitor, and even restart your app if it crashes. Think of it as a tool that makes your life easier by handling the technical headaches while you focus on building awesome things.<\/p>\n\n\n\n<p>In this article, we will explore what PM2 is, why it\u2019s helpful, and how you can start using it step by step. Don\u2019t worry; it\u2019s simpler than it sounds!&nbsp;<\/p>\n\n\n\n<p>Let\u2019s dive in and make your application management stress-free!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What is PM2?<\/strong><\/h2>\n\n\n\n<p>PM2 is a popular process manager for Node.js applications. It simplifies managing, monitoring, and deploying Node.js applications in production environments.&nbsp;<\/p>\n\n\n\n<p>PM2 ensures that applications run continuously and helps manage multiple processes seamlessly, making it an essential tool for developers and DevOps teams.<\/p>\n\n\n\n<hr><p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html\"><strong>Install &amp; Configure a CSF Firewall in a CenTOS Server<\/strong><\/a><\/p><hr>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Key Features of PM2<\/strong><\/h2>\n\n\n\n<p>\u27a2 <strong>Process Management:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You can start, stop, and restart applications easily.<\/li>\n<\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>You can easily manage multiple Node.js applications simultaneously.<\/li>\n<\/ol>\n\n\n\n<p>\u27a2 <strong>Auto-Restart:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>It automatically restarts applications when they crash or experience an error.<\/li>\n<\/ol>\n\n\n\n<p>\u27a2 <strong>Cluster Mode:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>It supports running applications in cluster mode for better scalability and performance by utilizing multiple CPU cores.<\/li>\n<\/ol>\n\n\n\n<p>\u27a2 <strong>Monitoring:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>It offers detailed application metrics like CPU usage, memory consumption, and process uptime.<\/li>\n<\/ol>\n\n\n\n<p>\u27a2 <strong>Log Management:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>It provides robust logging capabilities, allowing developers to view real-time logs or analyze logs for debugging purposes.<\/li>\n<\/ol>\n\n\n\n<p>\u27a2 <strong>Load Balancing:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>It balances the application load across multiple instances.<\/li>\n<\/ol>\n\n\n\n<p>\u27a2 <strong>Deployment Automation:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>It simplifies application deployment using its integrated deployment system.<\/li>\n<\/ol>\n\n\n\n<p>\u27a2 <strong>Cross-Platform Support:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>It works on Linux, macOS, and Windows.<\/li>\n<\/ol>\n\n\n\n<hr><p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/401\/how-to-create-sudo-user-in-linux.html\"><strong>How to Create a User in Linux &amp; Add it to the sudoer File?<\/strong><\/a><\/p><hr>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Why Should You Use PM2?<\/strong><\/h2>\n\n\n\n<p>Think of PM2 as your app\u2019s personal assistant. It runs your Node.js app smoothly, so you don\u2019t have to stress about it. Here\u2019s why you\u2019ll love it:<\/p>\n\n\n\n<ul class=\"wp-block-list\" style=\"list-style: ' \\2794';\">\n<li>&nbsp;<strong>Keeps Your App Running:<\/strong> If your app crashes (which can happen), PM2 jumps in and restarts it automatically. There is no downtime, no worries.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\" style=\"list-style: ' \\2794';\">\n<li>&nbsp;<strong>Handles Growth Like a Pro:<\/strong> Got more users coming in? PM2 can run multiple instances of your app and efficiently use all your CPU power. With this, your app stays fast even when things get busy.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\" style=\"list-style: ' \\2794';\">\n<li>&nbsp;<strong>Easy Monitoring:<\/strong> Wondering how your app is doing? PM2 is like a health tracker for your app. It shows you everything\u2014CPU usage, memory, and more\u2014in one simple dashboard.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\" style=\"list-style: ' \\2794';\">\n<li>&nbsp;<strong>Simplifies Debugging:<\/strong> Logs can be a lifesaver when something goes wrong. PM2 collects all the logs so you can find and fix issues quickly.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\" style=\"list-style: ' \\2794';\">\n<li>&nbsp;<strong>Set It and Forget It: <\/strong>PM2 can start your app automatically when your server reboots. It\u2019s like setting an alarm; you don\u2019t have to remember to do it manually.<\/li>\n<\/ul>\n\n\n\n<p>In short, PM2 is a 24\/7 manager for your Node.js apps that makes your life easier by keeping your app stable, scalable, and easy to manage.&nbsp;<\/p>\n\n\n\n<hr><p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/416\/how-to-install-mysql-server-in-windows.html\"><strong>How to Install MySQL Server in Windows?<\/strong><\/a><\/p><hr>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How Can You Use PM2?<\/strong><\/h2>\n\n\n\n<p>Here, we are going to explain how you can use PM2 to manage things efficiently.&nbsp;<\/p>\n\n\n\n<p>We will start by installing PM2!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2 <strong>Installing PM2<\/strong><\/h3>\n\n\n\n<p>PM2 is a Node.js package and can be installed using <strong>npm<\/strong> or <strong>yarn<\/strong>. To install it globally, use the following command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>npm install -g pm2@latest<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Once installed, we will know the basic commands that you can use in it!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Basic PM2 Commands<\/strong><\/h3>\n\n\n\n<p>Here are some basic commands to get started:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. <strong>Start an Application<\/strong><\/h4>\n\n\n\n<p>To start an application, use:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>pm2 start app.js<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">2. <strong>View Running Processes<\/strong><\/h4>\n\n\n\n<p>To list all running processes, use:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>pm2 list<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>3. Stop an Application<\/strong><\/h4>\n\n\n\n<p>To stop an application, use:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>pm2 stop app.js<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">4. <strong>Restart an Application<\/strong><\/h4>\n\n\n\n<p>To restart an application, use:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>pm2 restart app.js<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">5. <strong>Monitor Applications<\/strong><\/h4>\n\n\n\n<p>To monitor application performance and resource usage, use:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>pm2 monit<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">6. <strong>View Logs<\/strong><\/h4>\n\n\n\n<p>To view logs for an application, use:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>pm2 logs<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">7. <strong>Save the Current State<\/strong><\/h4>\n\n\n\n<p>To save the current state of processes so they restart automatically on system reboot, use:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>pm2 save<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>8. Auto-Startup Configuration<\/strong><\/h4>\n\n\n\n<p>To configure PM2 to restart processes automatically after a system reboot:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>pm2 startup<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr><p><strong>Also Read:<\/strong> <a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/418\/how-to-check-response-time-of-website.html\"><strong>How to Check the Response Time of a Website?<\/strong><\/a><\/p><hr>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Advanced PM2 Usage<\/strong><\/h3>\n\n<p><\/p>\n\n<h4 class=\"wp-block-heading\"><strong>1. Running Applications in Cluster Mode<\/strong><\/h4>\n\n\n\n<p>PM2&#8217;s cluster mode enables better performance by using multiple CPU cores:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>pm2 start app.js -i max<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>*Note:<\/strong> Here, -i max automatically spawns instances equal to the number of CPU cores available.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>2. Configuring Applications with JSON<\/strong><\/h4>\n\n\n\n<p>You can define application configurations in a <strong>process.json<\/strong> file:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>{<\/strong><br><strong>\u00a0\u00a0&#8220;apps&#8221;: [<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0{<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;name&#8221;: &#8220;app1&#8221;,<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;script&#8221;: &#8220;.\/app.js&#8221;,<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;instances&#8221;: 2,<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;autorestart&#8221;: true,<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;watch&#8221;: false,<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;max_memory_restart&#8221;: &#8220;500M&#8221;<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0}<\/strong><br><strong>\u00a0\u00a0]<\/strong><br><strong>}<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Start applications using the configuration file:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>pm2 start process.json<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>3. Deployment Automation:<\/strong><\/h4>\n\n\n\n<p>PM2 simplifies deployments with its built-in deploy command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>pm2 deploy ecosystem.config.js production<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Monitoring with PM2<\/strong><\/h3>\n\n\n\n<p>PM2 offers a web-based monitoring tool called PM2 Plus. It offers insights into application performance, including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CPU and memory usage.<\/li>\n\n\n\n<li>Application health and status.<\/li>\n\n\n\n<li>Real-time logs and error tracking.<\/li>\n<\/ul>\n\n\n\n<p>To use PM2 Plus, run:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>pm2 plus<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr><p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/245\/NGINX-Explained-Know-its-Working-and-What-is-it-Used-For.html\"><strong>NGINX Explained! Know its Working &amp; What is it Used For?<\/strong><\/a><\/p><hr>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>Whether you are running a simple application or a complex multi-instance setup, PM2 ensures stability, scalability, and ease of management. With features like clustering, detailed monitoring, and automated deployments, it\u2019s an amazing tool for any Node.js developer or system administrator.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever faced challenges managing your Node.js application, especially keeping it running smoothly without interruptions? That\u2019s where PM2 comes in! In the world of modern web applications, ensuring seamless performance and uninterrupted uptime is critical. For developers working with Node.js, managing processes manually can be daunting and error-prone. PM2 is like a smart assistant [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-2149","post","type-post","status-publish","format-standard","hentry","category-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is PM2 and How Can You Use it?<\/title>\n<meta name=\"description\" content=\"Discover what PM2 is and how it simplifies managing Node.js applications. Learn its features, installation steps, and usage to boost performance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/421\/what-is-pm2-and-how-to-use-it.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is PM2 and How Can You Use it?\" \/>\n<meta property=\"og:description\" content=\"Discover what PM2 is and how it simplifies managing Node.js applications. Learn its features, installation steps, and usage to boost performance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/421\/what-is-pm2-and-how-to-use-it.html\" \/>\n<meta property=\"og:site_name\" content=\"Host IT Smart Knowledge base\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-03T15:17:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-10T08:27:54+00:00\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/421\/what-is-pm2-and-how-to-use-it.html\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/421\/what-is-pm2-and-how-to-use-it.html\",\"name\":\"What is PM2 and How Can You Use it?\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\"},\"datePublished\":\"2024-12-03T15:17:06+00:00\",\"dateModified\":\"2024-12-10T08:27:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\"},\"description\":\"Discover what PM2 is and how it simplifies managing Node.js applications. Learn its features, installation steps, and usage to boost performance.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/421\/what-is-pm2-and-how-to-use-it.html\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\",\"name\":\"Host IT Smart Knowledge base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"caption\":\"Admin\"},\"sameAs\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\"],\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is PM2 and How Can You Use it?","description":"Discover what PM2 is and how it simplifies managing Node.js applications. Learn its features, installation steps, and usage to boost performance.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/421\/what-is-pm2-and-how-to-use-it.html","og_locale":"en_US","og_type":"article","og_title":"What is PM2 and How Can You Use it?","og_description":"Discover what PM2 is and how it simplifies managing Node.js applications. Learn its features, installation steps, and usage to boost performance.","og_url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/421\/what-is-pm2-and-how-to-use-it.html","og_site_name":"Host IT Smart Knowledge base","article_published_time":"2024-12-03T15:17:06+00:00","article_modified_time":"2024-12-10T08:27:54+00:00","author":"Admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/421\/what-is-pm2-and-how-to-use-it.html","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/421\/what-is-pm2-and-how-to-use-it.html","name":"What is PM2 and How Can You Use it?","isPartOf":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website"},"datePublished":"2024-12-03T15:17:06+00:00","dateModified":"2024-12-10T08:27:54+00:00","author":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108"},"description":"Discover what PM2 is and how it simplifies managing Node.js applications. Learn its features, installation steps, and usage to boost performance.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/421\/what-is-pm2-and-how-to-use-it.html"]}]},{"@type":"WebSite","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/","name":"Host IT Smart Knowledge base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","caption":"Admin"},"sameAs":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/"],"url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/2149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/comments?post=2149"}],"version-history":[{"count":14,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/2149\/revisions"}],"predecessor-version":[{"id":2194,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/2149\/revisions\/2194"}],"wp:attachment":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/media?parent=2149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/categories?post=2149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/tags?post=2149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}