start apache & mysql from desktop script in ubuntu -
on lubuntu 14.04 (desktop) have installed apache web server , mysql server and, because of low ram (only 1024mb), decided remove them startup (with sudo update-rc.d -f apache2 remove
, editing /etc/mysql/my.cnf
file ).
now, every time want development have sudo service apache2 start
, sudo service mysql start
in terminal. wich fine.
my question is: commands executed .sh file? file can double-click desktop? far got
#!/bin/sh sudo service apache2 start sudo service mysql start
you can scripts mentioned.
apache:
#!/bin/sh sudo service apache2 start
mysql
#!/bin/sh sudo service mysql start
Comments
Post a Comment