Men cheklangan Linux vositalariga ega Yocto Linux tizimida ishlayapman. Men ma'lum bir portdan foydalanadigan jarayonni o'ldirmoqchi edim (1883).
Birinchidan, qaysi portlarni tinglayotganimizni ko'rish uchun men quyidagi buyruqdan foydalandim:
root@root:~# netstat -lt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:hostmon 0.0.0.0:* LISTEN
tcp 0 0 localhost.localdomain:domain 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9080 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN
tcp 0 0 :::hostmon :::* LISTEN
tcp 0 0 localhost:domain :::* LISTEN
tcp 0 0 :::ssh :::* LISTEN
tcp 0 0 :::1883 :::* LISTEN
Keyin men 1883-port yordamida jarayon nomini quyidagi tarzda topdim:
root@root:~# fuser 1883/tcp
290
root@root:~# ps | grep 290
290 mosquitt 25508 S /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
12141 root 8444 S grep 290
Yuqorida ko'rib turganimizdek, bu /usr/sbin/mosquitto
dasturi 1883 portidan foydalanadi.
Nihoyat, men jarayonni o'ldirdim:
root@root:~# systemctl stop mosquitto
Men systemctl
dan foydalandim, chunki bu holda bu tizim xizmati edi.
person
Daniel Jonsson
schedule
05.05.2020