标题:以批处理的方式自动运行Apache和Mysql 出处:gOxiA=苏繁=SuFan Blog 时间:Mon, 17 Jan 2005 14:22:54 +0000 作者:gOxiA 地址:https://goxia.maytide.net/read.php/809.htm 内容: Mysql可以做为服务加载到Linux中自动以服务运行,找了半天也没有找到如何将Apache以服务运行的方法。郁闷![emot]sweat[/emot] 不过朋友告诉我了一个简单的办法,就是同过类似DOS中的Autoexec.bat的方式来自动运行这两个服务。 方法: 编辑/etc/rc.d/rc.local文件添加 /bin/sh -c 'cd /usr/local/mysql/share; ./mysql/mysqld start' /bin/sh -c 'cd /usr/local/apache; ./bin/apachectl start' Generated by Bo-blog 2.1.1 Release