mysql怎么在rc.local加自动启动
时间:2007-02-17 来源:PHP爱好者
mysql怎么在rc.local加自动启动
正常启动方式是这样
cd /usr/local/mysql
bin/safe_mysqld &
是不是需要用if then 的语句? :em19:
redfox 回复于:2002-06-06 09:43:34这样
/bin/sh -c 'cd /usr/local/mysql;./bin/safe_mysqld &'
vam 回复于:2002-06-08 12:09:08great!!!!
:em22:
:em10:
:em06:
vam 回复于:2002-06-08 12:31:17还有个问题请教
/bin/sh -c 或 -cf 是什么参数?
thank:)
redfox 回复于:2002-06-09 02:41:56看看 man sh
pest 回复于:2003-01-07 11:24:38rc.local是自己手工创建的吗?
装完mysql后好象没找到这文件
Food 回复于:2003-01-07 13:38:06echo "/usr/local/mysql/bin/safe_mysqld &" >> /etc/rc.d/rc.local
ln2s 回复于:2003-04-24 08:46:04[quote:3f66c2c472="Food"]echo "/usr/local/mysql/bin/safe_mysqld &" >> /etc/rc.d/rc.local[/quote:3f66c2c472]
when i write the statemtent:
JAVA_HOME=/usr/jdk
export JAVA_HOME
but after my login i can not read JAVA_HOME!
why/
nuliyidian 回复于:2003-05-25 16:52:54redhat9里面好象是
/bin/sh /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf
mq110 回复于:2005-05-29 20:54:16chkconfig mysqld on
php爱好者站 http://www.phpfans.net 网页特效|网页模板
正常启动方式是这样
cd /usr/local/mysql
bin/safe_mysqld &
是不是需要用if then 的语句? :em19:
redfox 回复于:2002-06-06 09:43:34这样
/bin/sh -c 'cd /usr/local/mysql;./bin/safe_mysqld &'
vam 回复于:2002-06-08 12:09:08great!!!!
:em22:
:em10:
:em06:
vam 回复于:2002-06-08 12:31:17还有个问题请教
/bin/sh -c 或 -cf 是什么参数?
thank:)
redfox 回复于:2002-06-09 02:41:56看看 man sh
pest 回复于:2003-01-07 11:24:38rc.local是自己手工创建的吗?
装完mysql后好象没找到这文件
Food 回复于:2003-01-07 13:38:06echo "/usr/local/mysql/bin/safe_mysqld &" >> /etc/rc.d/rc.local
ln2s 回复于:2003-04-24 08:46:04[quote:3f66c2c472="Food"]echo "/usr/local/mysql/bin/safe_mysqld &" >> /etc/rc.d/rc.local[/quote:3f66c2c472]
when i write the statemtent:
JAVA_HOME=/usr/jdk
export JAVA_HOME
but after my login i can not read JAVA_HOME!
why/
nuliyidian 回复于:2003-05-25 16:52:54redhat9里面好象是
/bin/sh /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf
mq110 回复于:2005-05-29 20:54:16chkconfig mysqld on
php爱好者站 http://www.phpfans.net 网页特效|网页模板
相关阅读 更多 +