|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
VeriSign Code Signing Digital Certificates provides assurance to end users. Read about this and more in the free white paper: “How to Digitally Sign Downloadable Code for Secure Content Transfer.” Learn More! |
|
#1
|
|||
|
|||
|
I installed the apache-1.3.20 and MySQL-3.23.38 on my RedHat7.1 ,but When I modified rc.local in /etc/ec.d to this
code:--------------------------------------------------------------------------------#!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. if [ -f /etc/redhat-release ]; then R=$(cat /etc/redhat-release) arch=$(uname -m) a="a" case "_$arch" in _a*) a="an";; _i*) a="an";; esac NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat` if [ "$NUMPROC" -gt "1" ]; then SMP="$NUMPROC-processor " if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then a="an" else a="a" fi fi # This will overwrite /etc/issue at every boot. So, make any changes you # want to make to /etc/issue here or you will lose them when you reboot. echo "" > /etc/issue echo "$R" >> /etc/issue echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue cp -f /etc/issue /etc/issue.net echo >> /etc/issue fi touch /var/lock/subsys/local fi /usr/local/mysql/share/mysql/mysql.server start & fi /usr/local/apache/bin/apachectl start & fi -------------------------------------------------------------------------------- but the apache and mySQL did not start. please help me! |
|
#2
|
|||
|
|||
|
Why you have so many fi?
Can you start mysql and apache manually? Also, that line really should be something like so: /usr/local/apache/bin/apachectl start > /dev/null && echo -n ' apache' |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > how to start apache at system up? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|