install/start/restart/stop apache and mysql

#####Install mysql:
$ sudo apt-get install mysql-server mysql-client
"after install, you should set the root password"

#####Install Apache:
$ sudo apt-get install apache2
and use Chrome to see "http://localhost"

#####start/restart/stop Apache
$ sudo /etc/init.d/apache2 start
$ sudo /etc/init.d/apache2 restart
$ sudo /etc/init.d/apache2 stop

#####start/restart/stop Mysql
$ sudo /etc/init.d/mysql start
$ sudo /etc/init.d/mysql stop
$ sudo /etc/init.d/mysql restart

Comments

Popular posts from this blog

AWS Notes - Network - TransferFamily(Transfer) connect with EFS

Build JupyterNotebook(Anaconda) environment in AWS EC2

AWS Notes - DevOps - OpsWorks