Watch process detail command linux.
# เราสามารถรู้ได้ว่า apache2 รันอยู่หรือมี process id อะไรเราดูได้ใน
/var/run/apache2.pid
# การใช้ netstat หาโพรเซสที่เปิดพอร์ตนั้นๆ อยู่
$ netstat -an | grep "0.0.0.0:80"
$ netstat -tnlp | grep "0.0.0.0:80"
# การทำลาย process
$ killall -9 322 ซึ่ง 322 คือ pid (process id)
# การดูโพรเซส
$ ps -aux
No comments:
Post a Comment