![](/img/trans.png)
[英]Start XAMPP Control Panel Apache MySql from Python 2.7 script
[英]start apache & mysql from desktop script in ubuntu
在lubuntu 14.04(台式機)上,我已經安裝了apache Web服務器和mysql服務器,並且由於內存較低(僅1024mb),我決定從啟動中刪除它們(使用sudo update-rc.d -f apache2 remove
並通過編輯/etc/mysql/my.cnf
文件)。
現在,每次我想進行一些開發時,我都必須在終端中sudo service mysql start
sudo service apache2 start
和sudo service mysql start
。 一切都很好。
我的問題是:可以從.sh文件執行那些命令嗎? 我可以從桌面雙擊它的文件嗎? 到目前為止,我得到了
#!/bin/sh
sudo service apache2 start
sudo service mysql start
您可以使用您提到的腳本來實現。
阿帕奇:
#!/bin/sh
sudo service apache2 start
MySQL的
#!/bin/sh
sudo service mysql start
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.