Tentang NGINX


Status
Not open for further replies.

GriyaHosting

Expert 1.0
Om aq mau tanya dong kalau cara mengatasi 504 gateway time-out di nginx bagaimana yah?
soalnya aq br belajar buat server dngn nginx, memori 512MB, swap 1GB,XEN.

Apakah dengan spesifikasi VPS tersebut cukup atau didak yah oom untuk trafik kunjungan New Visitor 2000-3000/day?
apakah masih bisa di tunning lg oom vps tersebut.

tergantung juga webnya apaan bro .. kalau ga pake mysql cuman statis 10rb pengunjun masih lancar jaya :D
 

am3n

Apprentice 1.0
aneh, kok saya dapat notifikasi dari tool nobody_check, yang bilang Process ID nginx di kill

date Sun, May 22, 2011 at 8:00 AM
subject Nobody Check on server

...

Sun May 22 08:00:01 WIT 2011 on server
Warning: Malicious Nobody Process Found
=========================================
Options: kill bad proc=1 logging lvl=1

SCAN SUMMARY
========================================

Clean Processes: 4
DETECTED Malicious Processes: 3


DETECTION DETAILS
========================================


DETECTION: Process 16122 with name nginx and path /usr/local/sbin/nginx
DETECTION: Process 16108 with name nginx and path /usr/local/sbin/nginx

Process ID: 16122 has been killed
....
Process ID: 16108 has been killed
...
 

am3n

Apprentice 1.0
ok, akhirnya saya edit nobody_check agar mengenali process nginx

# vi /usr/local/nobody_check/nobody_check

...
# Apache
apachepid="/usr/local/apache/bin/httpd"
apachename="httpd"

# Nginx
nginxpid="/usr/local/sbin/nginx"
nginxname="nginx"

# Munin
muninpid="/usr/local/bin/perl"
muninname="apache_accesses"
...
if [ "$procshow" = "$apachename" ] && [ "$procpath" = "$apachepid" ]
then

cleanlog=`expr $cleanlog + 1`
echo $procshow "is $apachename ...clean"

elif [ "$procshow" = "$nginxname" ] && [ "$procpath" = "$nginxpid" ]
then
cleanlog=`expr $cleanlog + 1`
echo $procshow "is $nginxname ...clean"

elif [ "$procshow" = "$muninname" ] && [ "$procpath" = "$muninpid" ]
then
cleanlog=`expr $cleanlog + 1`
echo $procshow "is $muninname ...clean"

...

hasil pada saat di jalankan
# ./nobody_check
Nobody Check 1.0.3-Patch1
Running on cPanel
Copyright (c) 2006 Wave Point Media Inc
Made available by www.webhostgear.com
Options: kill bad proc=1 logging lvl=1
Initializing Scan on Sun May 22 16:34:37 WIT 2011 ...

nginx is nginx ...clean
nginx is nginx ...clean
httpd is httpd ...clean
httpd is httpd ...clean
httpd is httpd ...clean
httpd is httpd ...clean
httpd is httpd ...clean

Done Scanning
Clean Processes: 7
Your server is all clean and safe - keep up the good work!
 
Status
Not open for further replies.

Top