Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
開いているすべてのソケット ファイル記述子と、ソケット ファミリ、プロトコル、バインディング アドレスなどのその他の情報を取得するにはどうすればよいですか?
一部のユーザーランドコマンドではなく、カーネルモジュールでこれを行う必要があります...
コマンドを使用できますlsof(root である必要があります)。
lsof
例えば :lsof -i
lsof -i
AWKまたはカットで出力を処理できます。
この助けを願っています。
よろしく。