ubuntu 17 安装 nginx php mysql
来源:互联网 发布:淮南市大数据技能大赛 编辑:程序博客网 时间:2024/06/13 00:33
虚拟机里安装好ubuntu 17(步骤略)
0、配置虚拟机ip地址
将虚拟机网卡设置为“桥接模式”
配置IP地址:
1、安装nginx
运行:sudo apt-get install nginx
启动:sudo service nginx start
通过主机访问虚拟机IP地址,应能正常显示欢迎使用Nginx网页
2、安装PHP7.1(不同镜像源服务器有可能版本不同)
运行:sudo apt-get install php-fpm
安装php-pear: sudo apt-get install php-pear
安装php-curl : sudo apt-get install php-curl
启动:sudo service php7.1-fpm start
如遇报错,可通过 systemctl status php7.1-fpm.service看错误信息
3、配置Nginx php功能
cd /etc/nginx/sites-available
sudo vi default
修改php相关部分:
在 默认的 /var/www/html/ 下新建一phpinfo()的php 文件,在浏览器中访问,如能正常访问,则设置成功。
然后可根据需要设定web 默认文件位置。并修改默认文件顺序等相关配置(default文件的开头部分)
root /var/www/html
index index.php index.html
4、mysql
sudo apt-get install mysql-server
默认root 无密码,安装完成后更改root密码
sudo passwd root
阅读全文
0 0
- ubuntu 17 安装 nginx php mysql
- UBUNTU 安装PHP+MYSQL+NGINX
- Ubuntu 安装php+mysql+nginx
- Ubuntu安装nginx+php+mysql
- ubuntu 10.10 源码安装 nginx php mysql
- Ubuntu下安装Nginx+PHP+MySQL+FastCGI
- ubuntu 安装nginx apache php mysql
- ubuntu下nginx+php+mysql安装配置
- ubuntu apt-get 安装 nginx+php+mysql
- ubuntu下nginx+php+mysql安装配置
- Ubuntu arm 平台安装nginx php mysql
- Ubuntu下安装Nginx, MySQL, PHP (LEMP)
- Ubuntu Wiki指导安装Nginx +mysql+php
- ubuntu下安装nginx+mysql+php-fpm
- Ubuntu安装Nginx+MySQL+PHP(LNMP)
- Ubuntu 安装 Nginx, MySQL, PHP (LNMP)
- Ubuntu安装ssh PHP mysql Nginx
- ubuntu nginx + php + mysql
- 用GDB调试程序(七)
- Cheerleaders(uva 11806)
- 数组中重复的数字
- 设计模式 -- 原型模式
- Oracle物化视图创建
- ubuntu 17 安装 nginx php mysql
- 软件工程(C编码实践篇)学习总结
- nginx多站点配置,以及隐藏index.php
- python圣斗士修炼(十四):关于时间处理
- 学习C++程序设计需要什么基础
- Django 快速搭建博客 第五节(hello world模板视图)
- java内存区域与内存溢出异常
- 训练日记
- Node.js 参数的接收