apache 老是自动重启如何解决

[Wed Sep 11 17:58:44 2024] [notice] Parent: child process exited with status 3221225725 -- Restarting.
[Wed Sep 11 17:58:44 2024] [notice] Apache/2.2.25 (Win32) configured -- resuming normal operations
[Wed Sep 11 17:58:44 2024] [notice] Server built: Jul 10 2013 01:52:12
[Wed Sep 11 17:58:44 2024] [notice] Parent: Created child process 39728
[Wed Sep 11 17:58:44 2024] [notice] Child 39728: Child process is running
[Wed Sep 11 17:58:44 2024] [crit] (OS 5)拒绝访问。  : master_main: WaitForMultipeObjects WAIT_FAILED -- doing server shutdown
[Wed Sep 11 17:58:44 2024] [notice] Child 39728: Acquired the start mutex.
[Wed Sep 11 17:58:44 2024] [notice] Child 39728: Starting 250 worker threads.
[Wed Sep 11 17:58:44 2024] [notice] Child 39728: Exit event signaled. Child process is ending.
[Wed Sep 11 17:58:44 2024] [notice] Child 39728: Starting thread to listen on port 8080.
[Wed Sep 11 17:58:45 2024] [notice] Child 39728: Released the start mutex
[Wed Sep 11 17:58:46 2024] [notice] Child 39728: All worker threads have exited.
[Wed Sep 11 17:58:46 2024] [notice] Child 39728: Child process is exiting
[Wed Sep 11 17:58:46 2024] [notice] Parent: Child process exited successfully.
[Wed Sep 11 18:00:32 2024] [notice] Apache/2.2.25 (Win32) configured -- resuming normal operations
[Wed Sep 11 18:00:32 2024] [notice] Server built: Jul 10 2013 01:52:12
[Wed Sep 11 18:00:32 2024] [notice] Parent: Created child process 23376
[Wed Sep 11 18:00:32 2024] [notice] Child 23376: Child process is running
[Wed Sep 11 18:00:32 2024] [notice] Child 23376: Acquired the start mutex.
[Wed Sep 11 18:00:32 2024] [notice] Child 23376: Starting 250 worker threads.
[Wed Sep 11 18:00:32 2024] [notice] Child 23376: Starting thread to listen on port 8080.

已经找到问题了,那个数据连接应该是有问题。第二第三种写法没有问题,第一种有问题。请问为什么?


function sort_tree_list( $SORT_ID)
{
	$query = "SELECT * from 111 where SORT_PARENT='".$SORT_ID."' order by SORT_NO";  //and SORT_PARENT!='2950' 
	$cursor = exequery(TD::conn(), $query );
	$OPTION_TEXT = "";
	while ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$SORT_ID = $ROW['SORT_ID'];
        $OPTION_TEXT .=$ROW['SORT_NAME'];
		$OPTION_TEXT .= sort_tree_list( $SORT_ID);
	}
    mysql_free_result($cursor);
	return $OPTION_TEXT;
}
function sort_tree_list2( $SORT_ID,$arr_con)
{
	$query = "SELECT * from 111 where SORT_PARENT='".$SORT_ID."'  order by SORT_NO";
    $conn=OpenConnection($arr_con,$arr_con);
    $cursor = mysql_query($query,$conn);
	$OPTION_TEXT = "";
    $array=array();
    while ( $ROW1 = mysql_fetch_array( $cursor ) )
	{
        $array[]=$ROW1;
	}
    mysql_free_result($cursor);
    mysql_close($conn);
    foreach ($array as $key => $ROW) {
        $SORT_ID = $ROW['SORT_ID'];
        $OPTION_TEXT .=$ROW['SORT_NAME'];
		$OPTION_TEXT .= sort_tree_list2( $SORT_ID,$arr_con);
    }
	return $OPTION_TEXT;
}

function sort_tree_list3( $SORT_ID,$conn)
{
	$query = "SELECT * from 111 where SORT_PARENT='".$SORT_ID."'  order by SORT_NO";
    $cursor = mysql_query($query,$conn);
	$OPTION_TEXT = "";
    $array=array();
    while ( $ROW1 = mysql_fetch_array( $cursor ) )
	{
        $array[]=$ROW1;
	}
    mysql_free_result($cursor);
    foreach ($array as $key => $ROW) {
        $SORT_ID = $ROW['SORT_ID'];
        $OPTION_TEXT .=$ROW['SORT_NAME'];
		$OPTION_TEXT .= sort_tree_list3( $SORT_ID,$conn);
    }

    
	return $OPTION_TEXT;
}
//echo sort_tree_list(0);
echo sort_tree_list2(0,$arr_con);
//$conn=OpenConnection($arr_con);
//echo sort_tree_list3(0,$conn);
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值