P

CentOS7 명령어 비교 신명령어 systemctl vs 구명령어

· 2016-11-29 (화) 10:42:13 · 5049

centos7부터는 구 명령어는 아직 사용가능하지만

호환성때문에 아직 내버려두는 것이지... 앞으로는 없앤다 하니

신명령어를 알아놓읍시다

 

Table 9.3. Comparison of the service Utility with systemctl

servicesystemctlDescription
service name start
systemctl start name.service
Starts a service.
service name stop
systemctl stop name.service
Stops a service.
service name restart
systemctl restart name.service
Restarts a service.
service name condrestart
systemctl try-restart name.service
Restarts a service only if it is running.
service name reload
systemctl reload name.service
Reloads configuration.
service name status
systemctl status name.service
systemctl is-active name.service
Checks if a service is running.
service --status-all
systemctl list-units --type service --all
Displays the status of all services.

 

Table 9.4. Comparison of the chkconfig Utility with systemctl

chkconfigsystemctlDescription
chkconfig name on
systemctl enable name.service
Enables a service.
chkconfig name off
systemctl disable name.service
Disables a service.
chkconfig --list name
systemctl status name.service
systemctl is-enabled name.service
Checks if a service is enabled.
chkconfig --list
systemctl list-unit-files --type service
Lists all services and checks if they are enabled.
chkconfig --list
systemctl list-dependencies --after
Lists services that are ordered to start before the specified unit.
chkconfig --list
systemctl list-dependencies --before
Lists services that are ordered to start after the specified unit.

 

|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
기타 16-12-08 조회 3,721
기타 16-12-08 조회 5,117
PHP 16-12-07 조회 2,641
PHP 16-12-07 조회 3,000
PHP 16-12-07 조회 3,325
OS 16-12-05 조회 3,499
PHP 16-12-05 조회 2,908
PHP 16-12-05 조회 2,986
PHP 16-12-05 조회 2,837
OS 16-12-05 조회 4,226
PHP 16-12-04 조회 3,042
OS 16-12-04 조회 9,745
MySQL 16-12-03 조회 3,823
OS 16-12-03 조회 3,155
기타 16-12-02 조회 2,633
PHP 16-12-02 조회 2,918
PHP 16-12-02 조회 3,337
PHP 16-12-02 조회 3,239
PHP 16-11-30 조회 3,965
PHP 16-11-30 조회 3,587
PHP 16-11-30 조회 3,107
OS 16-11-30 조회 7,565
OS 16-11-30 조회 4,497
OS 16-11-29 조회 6,241
PHP 16-11-29 조회 3,011
JavaScript 16-11-29 조회 3,141
PHP 16-11-29 조회 2,917
OS 16-11-29 조회 5,050
OS 16-11-28 조회 3,718
OS 16-11-28 조회 3,287