1. 程式人生 > >ubuntu 16.04 安裝lamp

ubuntu 16.04 安裝lamp

ubuntu安裝lamp lamp lamp安裝

sudo apt-get install apache2

apache2 -v

sudo apt-get install php7.0

php7.0 -v


sudo apt-get install libapache2-mod-php7.0


cat /etc/apache2/mods-enabled/php7.0.load


sudo apt-get install mysql-server


sudo apt-get install php7.0-mysql


sudo service mysql restart


sudo service apache2 restart


sudo vim /var/www/html/phpinfo.php


<?php

echo phpinfo();

?>


http://192.168.88.254/phpinfo.php


本文出自 “XnNetBlog” 博客,請務必保留此出處http://xnnet.blog.51cto.com/12795469/1933608

ubuntu 16.04 安裝lamp