Quote:
Originally posted by juicylinks
Without doing a straight "reboot" command ?
|
If you don't know the location of the apachectl script, you can issue the following command...
ps -ax
From the list of processes, you will see multiple entries that look similar to this...
43030 ?? I 0:00.30 /usr/bin/httpd
This tells you that apachectl script is located in the /usr/bin directory. Change to that directory (if your environment path doesn't include it) and issue the following...
apachectl restart
You will see two messages. The first one says that apache has stopped. The second is the confirmation that apache has restarted.
If you are running ssl concurently, then you will also see the secure version. The script location is found the same way, but the command is different. You will need to issue the stop command, then the start command.
You shouldn't need to restart mysql outside of apache. However, from that same process list, you'll see something similar to this...
162 ?? S 2:50.34 /usr/sbin/libexec/mysqld ... bunch more flags...
You could issue the following command to restart it...
kill -1 pid#
where pid# is the process ID. In this case, 162.
So, kill -1 162 should restart mysql.
Hope that helps.