◽ CentOS

[Linux CentOS - (29) ] systemctl enable mysqld (CentOS7 ↑) // (CentOS6 ↓) chkconfig --level 345 mysqld on : 부팅 자동 시작

CentOS6이하 버전에서의 번거로움을 7버전 이상에서는 enable로 간편히 처리한다.

# systemctl enable httpd

# systemctl enable mysqld

 

상태는 이렇게 확인하면 된다.

# systemctl status httpd

 

 

 


CentOS 7이상 버전         CentOS 6 이하 버전


# cd /etc/rc.d/init.d

# chkconfig --add mysqld [ENTER]

# chkconfig --level 345 mysqld on [ENTER] 

 

345가 활성되면 재부팅 시 자동으로 기동된다.

 

그외 옵션은 -del 등이 있다. ( chkonfig -hlep로 저 참조 하도록 )

푸터바