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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -