Linux ?Y?c?i?? Apache2 csi?? Process Id – pidof

0

. .

a?? Ubuntu / nolvadex no rx, . Debian Linux ei????Y?ei????Y?c?i??a??csi?? Process Id, ei????i??Ze???Y??

ei??sa??e?????ai??i??a?i??: ps aux . | grep apache | awk ‘{print $2}’

a?? Linux ??i??ai??i???i????i???a??csi??ai???ai??i?? – pidof (find the process ID of a running program.)

ex:

  • ?Y?c?i?? Apache2 csi?? pid

    $ pidof apache2 ordering synthroid.
    29900 29899 29898 29897 29896 29895 29894 29893

  • ?Y?c?i?? MySQL csi?? pid

    $ pidof mysqld
    12265

a?i??e?i??e?z??i??a??ai????Y?c?i?? mysqld c??a???i???a??aYi??e??csi??ci??i?????

  • ls -l /proc/`pidof mysqld`/fd
  • ls -l /proc/`pidof mysqld`/fd | grep deleted


Go to Source

Leave A Reply

Your email address will not be published.