Ubuntu 14.04 安装Apache、MySQL、PHP、JDK7、Tomcat7、vsFTPd、Open SSH Server快速步骤

来源:互联网 发布:积分下载系统源码 编辑:程序博客网 时间:2024/05/20 15:57

查找软件是否已经安装了
dpkgl|greptomcat1.1.AMP1.1.1.Apache sudo apt-get install apache2
检查是否安装成功:
重启Apache:$ sudo /etc/init.d/apache2 restart
在浏览器键入:127.0.0.1,如果显示“It works !”页面,则安装成功。

Configuration layout:
/etc/apache2/
|– apache2.conf
| -- ports.conf
|-- mods-enabled
| |-- *.load
|
– *.conf
|– conf-enabled
| -- *.conf
|-- sites-enabled
|
– *.conf
The default Ubuntu document root is /var/www/html.
1.1.2. 安装MySQL
sudoaptgetinstallmysqlserver mysql -uroot -p,如果提示键入密码,则安装成功。

Configuratio file: /etc/mysql/my.cnf
If you would like to change the MySQL root password, in a terminal enter:
$ sudo dpkg-reconfigure mysql-server-5.5

1.1.3. 安装PHP
sudoaptgetinstallphp5Apache sudo /etc/init.d/apache2 restart
编辑phpinfo.php文件:$ sudo gedit /var/www/phpinfo.php
在文件中键入:

0 0