Skip to main content
Linux Administration Tips and Website
- NixCraft
- Xcopy in Linux (copy with owner and group information)
- cd /old_dir
find . -depth -print | cpio -pdlmv /new_dir
- Find a file
- Service Management
- Redhat/Fedora
- add a service (httpd) to start at run level 2,3 and 5
- add the service using chkconfig script. Then turn on the service at the desired run levels.
- # chkconfig httpd --add
- # chkconfig httpd on --level 2,3,5
- Check service startup status
- disable a service
- # chkconfig httpd off
- # chkconfig httpd --del
- Manual start.stop service
- # service httpd start
- # service httpd stop
- Debian/Ubuntu
- enable httpd using default options
- # update-rc.d apache2 defaults
- enable httpd explicitly at run level 2,3 and 5
- # update-rc.d apache2 start 20 2 3 4 5 . stop 80 0 1 6 .
- disable a service
- # update-rc.d -f apache2 remove
Comments