发现一个在Ubuntu下快速安装LAMP (Linux, Apache, MySQL, PHP) 的方法, 命令如下:
$ sudo tasksel install lamp-server
安装过程会以图形化的方式显示出来, 很是方便. 不仅如此, tasksel命令还可以安装很多其它的任务:
$ tasksel --list-tasks
u server Basic Ubuntu server
u dns-server DNS server
u edubuntu-server Edubuntu server
i lamp-server LAMP server
u mail-server Mail server
i openssh-server OpenSSH server
u postgresql-server PostgreSQL database
i print-server Print server
u samba-server Samba file server
u tomcat-server Tomcat Java server
u virt-host Virtual Machine host
u ubuntustudio-graphics 2D/3D creation and editing suite
u ubuntustudio-audio Audio creation and editing suite
u edubuntu-desktop-kde Edubuntu KDE desktop
u edubuntu-desktop-gnome Edubuntu desktop
u kubuntu-desktop Kubuntu desktop
u ubuntustudio-audio-plugins LADSPA and DSSI audio plugins
u mythbuntu-desktop Mythbuntu additional roles
u mythbuntu-frontend Mythbuntu frontend
u mythbuntu-backend-master Mythbuntu master backend
u mythbuntu-backend-slave Mythbuntu slave backend
u mobile-mid Ubuntu MID edition
u mobile-netbook-remix Ubuntu Netbook Remix
i ubuntu-desktop Ubuntu desktop
u ubuntustudio-video Video creation and editing suite
u xubuntu-desktop Xubuntu desktop
u kubuntu-live Kubuntu live CD
u kubuntu-dvd-live Kubuntu live DVD
u mythbuntu-live Mythbuntu live CD
u mobile-live Ubuntu MID live environment
u ubuntu-live Ubuntu live CD
u ubuntu-dvd-live Ubuntu live DVD
u xubuntu-live Xubuntu live CD
u manual Manual package selection
第一列的“u”代表未安装, “i”代表已安装. 可以看到, 基本上常用的服务上面都有, 可以简化很多安装的步骤. 如果你想查看某个任务具体要安装哪些包, 使用--task-packages即可. 这个方法适用于所有基于Debian的系统.