共通Linuxコマンド(更新継続)
968 ワード
サービス
ポートが使用されているかどうかを確認
# 、 、
service [service_name] start/stop/restart
#
chkconfig [service_name] on
chkconfig [service_name] off
[root@localhost springboot]# chkconfig --list
: SysV , systemd 。SysV systemd 。
systemd , 'systemctl list-unit-files'。
target
'systemctl list-dependencies [target]'。
eureka-server 0: 1: 2: 3: 4: 5: 6:
search-service 0: 1: 2: 3: 4: 5: 6:
zipkin-server 0: 1: 2: 3: 4: 5: 6:
systemctl start [service_name]
systemctl stop [service_name]
systemctl restart [service_name]
systemctl enable [service_name]
systemctl disable [service_name]
ネット編ポートが使用されているかどうかを確認
[root@test init.d]# lsof -i:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 2013 root 9u IPv4 34075 0t0 T