ここでGitリスニングサービスを識別して終了する方法は?

ここでGitリスニングサービスを識別して終了する方法は?

私はリスニングサービスに取り組んでおり、正しい状況および/または両方で正しいサービスを終了できるgitように、リスニングサービスの種類を識別する方法について考えています。これらのサービスが必要な場合、またはgitサーバー(DopeGhoti)でも機能します。各リスニングサービスが実行するアクションのコードを理解していません。gitgit pushgit pullgit clone [repos]

masi@masi:~$ netstat -lt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 *:git                   *:*                     LISTEN     
tcp6       0      0 [::]:git                [::]:*                  LISTEN     

しかし、netstat -plntどのサービスがGit AまたはBサービスに属しているかを確認する方法

(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:5348          0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:17991         0.0.0.0:*               LISTEN      24698/rsession  
tcp        0      0 0.0.0.0:9418            0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:34893           0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:9999            0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      -               
tcp6       0      0 :::9418                 :::*                    LISTEN      -               
tcp6       0      0 :::9999                 :::*                    LISTEN      -               
tcp6       0      0 :::111                  :::*                    LISTEN      -               
tcp6       0      0 :::80                   :::*                    LISTEN      -               
tcp6       0      0 :::33875                :::*                    LISTEN      -               
tcp6       0      0 ::1:631                 :::*                    LISTEN      -               
tcp6       0      0 ::1:5432                :::*                    LISTEN      -               
tcp6       0      0 ::1:25                  :::*                    LISTEN      -   

オペレーティングシステム:Debian 8.7
Git:2.1.4

ベストアンサー1

「多すぎますか?」 IPv4 および IPv6 インターフェイスにありますが、どちらか一方のみを使用します。

xinetdすべてのサービスは受信する必要があります(またはプロキシを介した受信などのサービスコレクタが必要です)。一部着信接続を受け入れるポートまたはソケット。

では、/etc/servicesgitのポート9418を見ることができます。

git             9418/tcp                        # Git Version Control System

おすすめ記事