1. package checking
(venv) cuda@desktop-sh:~/celery_demo$ dpkg -l |grep -i rabbitmqii rabbitmq-server 3.6.10-1 all AMQP server written in Erlang(venv) cuda@desktop-sh:~/celery_demo$
2. service checking
(venv) cuda@desktop-sh:~/celery_demo$ sudo systemctl status rabbitmq-server.service ● rabbitmq-server.service - RabbitMQ Messaging Server Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2019-08-05 10:18:09 CST; 1 day 1h ago Main PID: 1444 (rabbitmq-server) Tasks: 164 (limit: 4915) CGroup: /system.slice/rabbitmq-server.service ├─1444 /bin/sh /usr/sbin/rabbitmq-server ├─1525 /bin/sh /usr/lib/rabbitmq/bin/rabbitmq-server ├─1939 /usr/lib/erlang/erts-9.2/bin/epmd -daemon ├─2249 /usr/lib/erlang/erts-9.2/bin/beam.smp -W w -A 128 -P 1048576 -t 5000000 -stbt db -zdbbl 32000 -K true -B i -- -root /usr/lib/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/l ├─2438 erl_child_setup 65536 ├─3106 inet_gethost 4 └─3107 inet_gethost 4Aug 05 10:17:14 desktop-sh systemd[1]: Starting RabbitMQ Messaging Server...Aug 05 10:17:34 desktop-sh rabbitmq[1446]: Waiting for 'rabbit@desktop-sh'Aug 05 10:17:34 desktop-sh rabbitmq[1446]: pid is 1525Aug 05 10:18:09 desktop-sh systemd[1]: Started RabbitMQ Messaging Server.lines 1-18/18 (END)
3. network port checking
(venv) cuda@desktop-sh:~/celery_demo$ ss -n -l -a |grep -i 5672u_str ESTAB 0 0 @/tmp/dbus-iHO5fwv9Bf 256729 * 257329 u_str ESTAB 0 0 * 257329 * 256729 u_str ESTAB 0 0 * 258720 * 256721 u_str ESTAB 0 0 @/tmp/dbus-iHO5fwv9Bf 256721 * 258720 tcp LISTEN 0 128 0.0.0.0:15672 0.0.0.0:* tcp LISTEN 0 128 0.0.0.0:25672 0.0.0.0:* tcp LISTEN 0 128 *:5672 *:* (venv) cuda@desktop-sh:~/celery_demo$
4. others methods
sudo lsof -i |grep -i 5672
cuda@desktop-sh:~/celery_demo$ sudo nmap -p 5672 127.0.0.1Starting Nmap 7.60 ( https://nmap.org ) at 2019-08-06 13:47 CSTNmap scan report for localhost (127.0.0.1)Host is up (0.000041s latency).PORT STATE SERVICE5672/tcp open amqpNmap done: 1 IP address (1 host up) scanned in 0.32 secondscuda@desktop-sh:~/celery_demo$