Fedora17的学习笔记

fedora 17上已经不再使用chkconfig来配置服务了,RHEL上很多相关命令在fedora 17上都没法正常使用了。
chkconfig –list只能看到极个别的服务

systemctl start|stop|status XXX.service
ntsysv命令在fedora 17下支持的服务不多了

开启自启动:
systemctl enable proftpd.service
ln -s ‘/lib/systemd/system/proftpd.service’ ‘/etc/systemd/system/multi-user.target.wants/proftpd.service’
systemctl enable mysqld.service
ln -s ‘/lib/systemd/system/mysqld.service’ ‘/etc/systemd/system/multi-user.target.wants/mysqld.service’

systemctl status httpd.service
httpd.service – The Apache HTTP Server (prefork MPM)
Loaded: loaded (/lib/systemd/system/httpd.service; enabled)
Active: active (running) since Mon, 04 Feb 2013 10:40:54 +0800; 3h 51min ago
Main PID: 10991 (httpd)
CGroup: name=systemd:/system/httpd.service
├ 10991 /usr/sbin/httpd -k start
├ 10993 /usr/sbin/httpd -k start
├ 10994 /usr/sbin/httpd -k start
├ 10995 /usr/sbin/httpd -k start
├ 10996 /usr/sbin/httpd -k start
├ 10997 /usr/sbin/httpd -k start
├ 10998 /usr/sbin/httpd -k start
├ 10999 /usr/sbin/httpd -k start
├ 11000 /usr/sbin/httpd -k start
├ 11187 /usr/sbin/httpd -k start
├ 11188 /usr/sbin/httpd -k start
└ 11367 /usr/sbin/httpd -k start

留下评论