ps(Process Status)
: 현재 구동 중인 프로세스 정보 확인
옵션
-e
: 모든 프로세스 확인(해당 옵션 생략 시, 현재 사용자의 프로세스만 나타냄)
-f
: 상세 정보 출력(Full Format)
# nginx 프로세스 확인
**ps -ef | grep nginx**
root 813 1 0 09:31 ? 00:00:00 nginx: master process /usr/sbin/nginx
nginx 814 813 0 09:31 ? 00:00:00 nginx: worker process
nginx 815 813 0 09:31 ? 00:00:00 nginx: worker process
# tomcat 프로세스 확인
**ps -ef | grep tomcat**
tomcat 739 1 2 09:31 ? 00:00:05 /usr/lib/jvm/jre/bin/java -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar: -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start
root 1387 1344 0 09:34 pts/0 00:00:00 grep --color=auto tomcat
'시리즈 > Linux 기초 다지기 2023 (개편 예정) - 시리즈' 카테고리의 다른 글
리눅스 기초 다지기 - 35. 표준 파일 디스크립터 (0) | 2025.03.13 |
---|---|
리눅스 기초 다지기 - 커맨드 익숙해지기(cat, find, grep, watch, which, whatis) (0) | 2025.03.13 |
리눅스 기초 다지기 - 33. nmon (0) | 2025.03.13 |
리눅스 기초 다지기 - 32. sar (0) | 2025.03.13 |
리눅스 기초 다지기 - 31. iostat (0) | 2025.03.13 |