---
title: "linux上启动服务"
author: "pujing"
date: "2011-04-21T01:23:13Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2011-04-21T01:23:13Z"
id: 1010684
url: "https://pujing.iteye.com/blog/1010684"
---

1.apache
/etc/rc.d/init.d/httpd restart
(配置文件：/etc/httpd/conf/httpd.conf)
2.mysql
/etc/rc.d/init.d/mysqld restart  (#mysqladminshutdown)
(配置文件：/etc/my.cnf)
3.cron
/etc/rc.d/init.d/crond restart
(配置文件：/etc/crontab)
/var/spool/cron/
crontab -e