1"use strict";(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[4015],{7641:function(e,t,n){n.r(t);var l=n(7294),a=n(4593),r=n(9366),c=n(5257),m=n(4233),o=n(8799);const E="Ô±Õ´Õ¢Õ¸Õ²Õ»Õ¡Õ¯Õ¡Õ¶ Õ¸ÖÕ²Õ¥ÖÕ¸ÖÕµÖ⤠Node.js-Õ« Õ¿Õ¥Õ²Õ¡Õ¤ÖÕ¸ÖÕ´ Õ¡Õ¾Õ¿Õ¸Õ´Õ¡Õ¿ Õ´Õ¥Õ¯Õ¶Õ¡ÖÕ¯Õ¸Õ¾ Ö .htaccess-Õ¸Õ¾";t.default=()=>l.createElement(r.Z,{lang:"am",postTitle:E},l.createElement(a.q,null,l.createElement("title",null,"Ô±Õ´Õ¢Õ¸Õ²Õ»Õ¡Õ¯Õ¡Õ¶ Õ¸ÖÕ²Õ¥ÖÕ¸ÖÕµÖ⤠Node.js-Õ« Õ¿Õ¥Õ²Õ¡Õ¤ÖÕ¸ÖÕ´ Õ¡Õ¾Õ¿Õ¸Õ´Õ¡Õ¿ Õ´Õ¥Õ¯Õ¶Õ¡ÖÕ¯Õ¸Õ¾ Ö .htaccess-Õ¸Õ¾"),l.createElement("meta",{name:"description",content:"Ô±Õ´Õ¢Õ¸Õ²Õ»Õ¡Õ¯Õ¡Õ¶ Õ¸ÖÕ²Õ¥ÖÕ¸ÖÕµÖ⤠Node.js-Õ« Õ¿Õ¥Õ²Õ¡Õ¤ÖÕ¸ÖÕ´ Õ¡Õ¾Õ¿Õ¸Õ´Õ¡Õ¿ Õ´Õ¥Õ¯Õ¶Õ¡ÖÕ¯Õ¸Õ¾ Ö .htaccess-Õ¸Õ¾. Ô»Õ¶Õ¹ÕºÕ¥Õ½ Õ¿Õ¥Õ²Õ¡Õ¤ÖÕ¥Õ¬ Node.js, Õ¯Õ¡ÖÕ£Õ¡Õ¾Õ¸ÖÕ¥Õ¬ PM2, Õ½Õ¿Õ¥Õ²Õ®Õ¥Õ¬ Õ¡Õ¾Õ¿Õ¸Õ´Õ¡Õ¿ Õ´Õ¥Õ¯Õ¶Õ¡ÖÕ¯ Crontab-Õ« Õ´Õ«Õ»Õ¸ÖÕ¸Õ¾ Ö Ö
Õ£Õ¿Õ¡Õ£Õ¸ÖÕ®Õ¥Õ¬ .htaccess-Õ¨ Õ³Õ«Õ·Õ¿ Õ¯Õ¡ÕµÖÕ« Õ¤Õ«Õ¿Õ¡ÖÕ¯Õ¸ÖÕ´Õ¨ Õ°Õ¡Õ´Õ¡Õ¯Õ¡ÖÕ£Õ¥Õ¬Õ¸Ö Õ°Õ¡Õ´Õ¡Ö:"}),l.createElement("meta",{name:"keywords",content:"Ô¿Õ¡ÕµÖÕ« Õ«Õ¶ÖÕ¶Õ¸ÖÖÕ¸ÖÕµÕ¶ Õ½Õ¿Õ¥Õ²Õ®Õ¸ÖÕ´Õ Õ¡Õ¼Õ¡Õ¶Ö Õ®ÖÕ¡Õ£ÖÕ¡Õ¾Õ¸ÖÕ¸Õ²Õ« Õ´Õ«Õ»Õ¡Õ´Õ¿Õ¸ÖÕ©ÕµÕ¡Õ¶: Ô±Õ¼Õ¡Õ¾Õ¥Õ¬Õ¸ÖÕ©ÕµÕ¸ÖÕ¶Õ¶Õ¥ÖÕ¨Õ Õ¡ÖÕ¡Õ£, Õ´Õ¡Õ¿Õ¹Õ¥Õ¬Õ«, Õ°Õ¥Õ·Õ¿, SEO/SSM Ö
ÕºÕ¿Õ«Õ´Õ«Õ¦Õ¡ÖÕ¾Õ¡Õ®:,network am, interneti kargavorum, Õ°Õ¸Õ½Õ©Õ«Õ¶Õ£, network am, abc internet, am am, домейн, domeyn, armenian web hosting, ÑÑ, network am, hosting am, inet am, host am, www nane am, hosting armenia, armenia domain, abc am, domen am, am name"}),l.createElement("meta",{property:"og:title",content:"Ô±Õ´Õ¢Õ¸Õ²Õ»Õ¡Õ¯Õ¡Õ¶ Õ¸ÖÕ²Õ¥ÖÕ¸ÖÕµÖ⤠Node.js-Õ« Õ¿Õ¥Õ²Õ¡Õ¤ÖÕ¸ÖÕ´ Õ¡Õ¾Õ¿Õ¸Õ´Õ¡Õ¿ Õ´Õ¥Õ¯Õ¶Õ¡ÖÕ¯Õ¸Õ¾ Ö .htaccess-Õ¸Õ¾"}),l.createElement("meta",{property:"og:description",content:"Ô±Õ´Õ¢Õ¸Õ²Õ»Õ¡Õ¯Õ¡Õ¶ Õ¸ÖÕ²Õ¥ÖÕ¸ÖÕµÖ⤠Node.js-Õ« Õ¿Õ¥Õ²Õ¡Õ¤ÖÕ¸ÖÕ´ Õ¡Õ¾Õ¿Õ¸Õ´Õ¡Õ¿ Õ´Õ¥Õ¯Õ¶Õ¡ÖÕ¯Õ¸Õ¾ Ö .htaccess-Õ¸Õ¾. Ô»Õ¶Õ¹ÕºÕ¥Õ½ Õ¿Õ¥Õ²Õ¡Õ¤ÖÕ¥Õ¬ Node.js, Õ¯Õ¡ÖÕ£Õ¡Õ¾Õ¸ÖÕ¥Õ¬ PM2, Õ½Õ¿Õ¥Õ²Õ®Õ¥Õ¬ Õ¡Õ¾Õ¿Õ¸Õ´Õ¡Õ¿ Õ´Õ¥Õ¯Õ¶Õ¡ÖÕ¯ Crontab-Õ« Õ´Õ«Õ»Õ¸ÖÕ¸Õ¾ Ö Ö
Õ£Õ¿Õ¡Õ£Õ¸ÖÕ®Õ¥Õ¬ .htaccess-Õ¨ Õ³Õ«Õ·Õ¿ Õ¯Õ¡ÕµÖÕ« Õ¤Õ«Õ¿Õ¡ÖÕ¯Õ¸ÖÕ´Õ¨ Õ°Õ¡Õ´Õ¡Õ¯Õ¡ÖÕ£Õ¥Õ¬Õ¸Ö Õ°Õ¡Õ´Õ¡Ö:"}),l.createElement("meta",{property:"og:type",content:"website"}),l.createElement("meta",{property:"og:site_name",content:"ABC Domain LLC"}),l.createElement("meta",{property:"og:image",content:"https://internet.am/images/fb_logo.png"}),l.createElement("meta",{name:"twitter:card",content:"summary"}),l.createElement("meta",{name:"twitter:title",content:"Ô±Õ´Õ¢Õ¸Õ²Õ»Õ¡Õ¯Õ¡Õ¶ Õ¸ÖÕ²Õ¥ÖÕ¸ÖÕµÖ⤠Node.js-Õ« Õ¿Õ¥Õ²Õ¡Õ¤ÖÕ¸ÖÕ´ Õ¡Õ¾Õ¿Õ¸Õ´Õ¡Õ¿ Õ´Õ¥Õ¯Õ¶Õ¡ÖÕ¯Õ¸Õ¾ Ö .htaccess-Õ¸Õ¾"}),l.createElement("meta",{name:"twitter:description",content:"Ô±Õ´Õ¢Õ¸Õ²Õ»Õ¡Õ¯Õ¡Õ¶ Õ¸ÖÕ²Õ¥ÖÕ¸ÖÕµÖ⤠Node.js-Õ« Õ¿Õ¥Õ²Õ¡Õ¤ÖÕ¸ÖÕ´ Õ¡Õ¾Õ¿Õ¸Õ´Õ¡Õ¿ Õ´Õ¥Õ¯Õ¶Õ¡ÖÕ¯Õ¸Õ¾ Ö .htaccess-Õ¸Õ¾. Ô»Õ¶Õ¹ÕºÕ¥Õ½ Õ¿Õ¥Õ²Õ¡Õ¤ÖÕ¥Õ¬ Node.js, Õ¯Õ¡ÖÕ£Õ¡Õ¾Õ¸ÖÕ¥Õ¬ PM2, Õ½Õ¿Õ¥Õ²Õ®Õ¥Õ¬ Õ¡Õ¾Õ¿Õ¸Õ´Õ¡Õ¿ Õ´Õ¥Õ¯Õ¶Õ¡ÖÕ¯ Crontab-Õ« Õ´Õ«Õ»Õ¸ÖÕ¸Õ¾ Ö Ö
Õ£Õ¿Õ¡Õ£Õ¸ÖÕ®Õ¥Õ¬ .htaccess-Õ¨ Õ³Õ«Õ·Õ¿ Õ¯Õ¡ÕµÖÕ« Õ¤Õ«Õ¿Õ¡ÖÕ¯Õ¸ÖÕ´Õ¨ Õ°Õ¡Õ´Õ¡Õ¯Õ¡ÖÕ£Õ¥Õ¬Õ¸Ö Õ°Õ¡Õ´Õ¡Ö:"}),l.createElement("meta",{name:"twitter:image",content:"https://internet.am/images/fb_logo.png"})),l.createElement(o.EB,null,l.createElement(o.eD,null,l.createElement(o.kt,null,l.createElement(o.Yu,null,l.createElement(o.JV,null,m.H.hosting.am),l.createElement(o.Qs,null,"30.05.2025")),l.createElement(o.xh,null,E),l.createElement(o.y5,{src:c.Z,alt:E}),l.createElement(o.Ml,null,l.createElement("h2",null,"1. ÕÕ¥Õ²Õ¡Õ¤ÖÕ¥Õ¬ Node.js"),l.createElement("pre",null,l.createElement("code",null,"cd /home/USER_DIR/bin export",l.createElement("br",null),"PATH=/home/USER_DIR/bin/node-v22.11.0-linux-x64/bin:$PATH",l.createElement("br",null),"node",l.createElement("br",null),"-v npm -v")),l.createElement("h2",null,"2. ÕÕ¥Õ²Õ¡Õ¤ÖÕ¥Õ¬ Ö Õ¯Õ¡ÖÕ£Õ¡Õ¾Õ¸ÖÕ¥Õ¬ PM2"),l.createElement("pre",null,l.createElement("code",null,"npm install -g pm2",l.createElement("br",null),"pm2 start /home/USER_DIR/server/server.js --name mynodeapp",l.createElement("br",null),"pm2 save")),l.createElement("h2",null,"3. Ô¿Õ¡Õ¦Õ´Õ¡Õ±ÖÕ¥Õ¬ Õ¡Õ¾Õ¿Õ¸Õ´Õ¡Õ¿ Õ´Õ¥Õ¯Õ¶Õ¡ÖÕ¯ Crontab-Õ« Õ´Õ«Õ»Õ¸ÖÕ¸Õ¾"),l.createElement("pre",null,l.createElement("code",null,"crontab -e")),l.createElement("p",null,"Ô±Õ¾Õ¥Õ¬Õ¡ÖÖÕ¥Ö Õ°Õ¥Õ¿ÖÕµÕ¡Õ¬ Õ¿Õ¸Õ²Õ¨Õ"),l.createElement("pre",null,l.createElement("code",null,"@reboot /bin/bash -c 'source /home/USER_DIR/.bashrc &&",l.createElement("br",null),"/home/USER_DIR/bin/node-v22.11.0-linux-x64/lib/node_modules/pm2/bin/pm2",l.createElement("br",null),"resurrect'")),l.createElement("h2",null,"4. .bashrc-Õ« Ö
ÖÕ«Õ¶Õ¡Õ¯"),l.createElement("pre",null,l.createElement("code",null,"if [ -f /etc/bashrc ]; then",l.createElement("br",null),". /etc/bashrc",l.createElement("br",null),"fi",l.createElement("br",null),"exp
1ort NODE_HOME=/home/USER_DIR/bin/node-v22.11.0-linux-x64",l.createElement("br",null),"export PATH=$NODE_HOME/bin:$HOME/.local/bin:$PATH",l.createElement("br",null),"if command -v pm2 > /dev/null 2>&1; then",l.createElement("br",null),"nohup pm2 resurrect > $HOME/pm2.log 2>&1 &",l.createElement("br",null),"fi")),l.createElement("h2",null,"5. Ô¿Õ¡ÖÕ£Õ¡Õ¾Õ¸ÖÕ¥Õ¬ .htaccess-Õ¨"),l.createElement("pre",null,l.createElement("code",null,"RewriteEngine On",l.createElement("br",null),"RewriteRule ^(.*)$ http://127.0.0.1:3000/$1 [P,L]")),l.createElement("h2",null,"6. Ô´Õ«Õ¿Õ¥Õ¬ Apache-Õ« Õ´Õ¡Õ¿ÕµÕ¡Õ¶Õ¶Õ¥ÖÕ¨"),l.createElement("pre",null,l.createElement("code",null,"tail -f /etc/apache2/logs/domlogs/USER_DIR/error_log",l.createElement("br",null),"tail -f /etc/apache2/logs/domlogs/USER_DIR/access_log")),l.createElement("h2",null,"7. ÕÕ¿Õ¸ÖÕ£Õ¥Õ¬ Õ¿Õ¥Õ²Õ¡Õ¤ÖÕ¸ÖÕ´Õ¨"),l.createElement("p",null,"ÕÕ¿Õ¸ÖÕ£Õ¥Ö PM2 ÖÕ¸ÖÖÕ¡Õ¯Õ¨Õ"),l.createElement("pre",null,l.createElement("code",null,"pm2 list")),l.createElement("p",null,"Ô±ÕµÖÕ¥Õ¬Õ¥ÖÕ"),l.createElement("pre",null,l.createElement("code",null,"http://yourdomain.com/")),l.createElement("h2",null,"â ï¸ Ô¿Õ¡ÖÖÕ¸Ö Õ§."),l.createElement("p",null,l.createElement("strong",null,"ÕÕ¡ÕÖÕ¡Õ¶ Õ¯Õ¡ÕµÖÕ¨ Õ°ÖÕ¡ÕºÕ¡ÖÕ¡Õ¯Õ¥Õ¬Õ¨, ÕºÕ¡ÖÕ¿Õ¡Õ¤Õ«Ö Õ°Õ¡ÖÖÖÕ¥Ö Õ°Õ¸Õ½Õ¿Õ«Õ¶Õ£Õ« Õ¡Õ¤Õ´Õ«Õ¶Õ«Õ½Õ¿ÖÕ¡Õ¿Õ¸ÖÕ«Õ¶Õ Õ«ÕÕ¶Õ¹ ÕºÕ¸ÖÕ¿ Õ¯Õ¡ÖÕ¸Õ² Õ¥Ö Ö Õ£Õ¿Õ¡Õ£Õ¸ÖÕ®Õ¥Õ¬Ö ÕÕ« Ö Õ£Õ¿Õ¡Õ£Õ¸ÖÕ®Õ¥Ö 3000-ÖÕ¤ ÕºÕ¸ÖÕ¿Õ¨Ö")),l.createElement(o.wZ,null,"© 2023 Internet.am. All rights reserved."))))))}}]); 2//# sourceMappingURL=component---src-pages-am-posts-complete-guide-auto-start-node-js-js-9435570dbb0308bc01d8.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.