Update server.sh
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
a38daaa32c
commit
c1edaffcbf
1 changed files with 4 additions and 4 deletions
|
@ -5,12 +5,12 @@
|
||||||
# Usage: ./server.sh [start|stop]
|
# Usage: ./server.sh [start|stop]
|
||||||
|
|
||||||
if [ "$1" == "start" ]; then
|
if [ "$1" == "start" ]; then
|
||||||
sudo systemctl start apache2.service
|
sudo systemctl start httpd.service
|
||||||
sudo systemctl start mysql.service
|
sudo systemctl start mariadb.service
|
||||||
sudo systemctl start php7.0-fpm.service
|
sudo systemctl start php7.0-fpm.service
|
||||||
elif [ "$1" == "stop" ]; then
|
elif [ "$1" == "stop" ]; then
|
||||||
sudo systemctl stop apache2.service
|
sudo systemctl stop httpd.service
|
||||||
sudo systemctl stop mysql.service
|
sudo systemctl stop mariadb.service
|
||||||
sudo systemctl stop php7.0-fpm.service
|
sudo systemctl stop php7.0-fpm.service
|
||||||
else
|
else
|
||||||
echo "'$1' is an unknown option"
|
echo "'$1' is an unknown option"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue