Jump to content

Recommended Posts

30 minutes ago, Magd Almuntaser said:


This command stops nodejs and starts it again.. The command only works in cloudlinux
PM2 can also be used.. And for those who use VPS, they can put a command similar to this to restart nodejs..
But these solutions are not final..

Yes no problem sir.

using cpanel with cloudlinux also simple and most of indonesian hosting provider use cloudlinux

On 9/13/2024 at 5:21 PM, chaitanya_bharat said:

hi there. since you're also using aapanel.

could you please help me

I have unzipped, proceeded with installation, database linked

using the pm2 manager, I have started nodeJS, but the QR code never loads (waiting for node server)

Check your server. Use http, if you install https, edit .env to https

On 9/11/2024 at 3:41 PM, Dammah Sifla said:

Maybe I have a little solution for VPS using PM2, PM2 ensures that Application continues to run without stopping, even if Aapplication has problems, if Application fails or crashes, PM2 will automatically restart..

Stop your Nodejs, then run this command in terminal to run nodejs with PM2.
Customize where your logs file are stored..

pm2 start server.js --name mpwa --log /home/users/logs/mpwa.log --output /home/users/logs/mpwa-output.log

"I use this on aaPanel and cPanel shared hosting running PM2 on nodejs virtual environments and so far nodejs has never crashed."

Coba pakai beginian bg.. @agus amin

  • Thanks 1
On 9/13/2024 at 6:37 AM, Enno The Explorer said:

Klo logout di hp memang masih keliatan connect bang, kecuali logoutnya di mpwa

Mohon bantuannya di perbaiki mr @Magd Almuntaser 🙏

Saya abis kebanned nih 🤣 ga kliatan di server, tulisan tetep connected asem. Saya kira server node saya bermasalah ternyata eh ternyata ke banned baru saya cek di hp 😭

16 hours ago, Gusik Prasetyo said:

Is it possible run this job in cpanel cepat cloud mas? How?

Hi, bisa di tes sendiri mas

Whoever using cpanel just test cloudlinunx command on terminal cpanel if its respon timer so you can use this methode to restart.

Btw the restart cloudlinunx command not working, you need use stop and start, well its on my case.

Pakai restart pm2 aman ni kalau yg mau no DC²

Cronjob kalau dari aapanel pilih Shell script untuk type nya

/bin/sh /www/wwwroot/domainmu.com atu folder/pm2restart.sh sesuaikan folder kalian bebas di mana aja 

Jalankan cronjob 2 menit sekali 

CATATAN: khusus untuk yg udah start server.js pakai pm2 karena ini untuk restart aja bukan untuk start

pm2restart.sh

Edited by Fud
59 minutes ago, Fud said:

Pakai restart pm2 aman ni kalau yg mau no DC²

Cronjob kalau dari aapanel pilih Shell script untuk type nya

/bin/sh /www/wwwroot/domainmu.com atu folder/pm2restart.sh sesuaikan folder kalian bebas di mana aja 

Jalankan cronjob 2 menit sekali 

CATATAN: khusus untuk yg udah start server.js pakai pm2 karena ini untuk restart aja bukan untuk start

pm2restart.sh 108 B · 2 downloads

per berapa menit ini atau 1 hari sekali

 

27 minutes ago, JangE said:

Sallam

Ada yang bisa berikan tutorial lengkap untuk hostinger shared hosting please, ga ada cpanel, node ga tau gimana jalanin sama cronjob, beda banget ini hostinger 😢
 

Terima kasih 🙏

Saya pake niaga hoster yg juga reseller hostinger, biasanya nodejs hanya ada untuk paket menengah k atas. 

Ato coba hubungi cs nya

3 hours ago, JangE said:

Sallam

Ada yang bisa berikan tutorial lengkap untuk hostinger shared hosting please, ga ada cpanel, node ga tau gimana jalanin sama cronjob, beda banget ini hostinger 😢
 

Terima kasih 🙏

Berarti gk support nodejs. Coba tanya csnya

3 hours ago, JangE said:

Sallam

Ada yang bisa berikan tutorial lengkap untuk hostinger shared hosting please, ga ada cpanel, node ga tau gimana jalanin sama cronjob, beda banget ini hostinger 😢
 

Terima kasih 🙏

Ini recommendasi hosting murah:

cepat.cloud paket archer

arenhost

hypercloudhost 


Banyak kok diluaran sana

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
  • Create New...