您现在的位置是:首页 > 经验记录>服务器相关>Ubuntu18.04 lnmp nginx1.14 PHP7.2 MySQL5.7 安装 配置 网站首页 服务器相关
Ubuntu18.04 lnmp nginx1.14 PHP7.2 MySQL5.7 安装 配置
1.apt 更新
apt update
2. 安装 nginx1.14
系统默认安装 1.14 ,具体版本和系统相关
apt install -y nginx
3. 安装 mysql
系统默认安装 5.7.24,具体版本和系统相关
#安装 apt install -y mysql-server mysql-client #配置ssh远程客户端登录[主要配置来使用navicat等软件登录] sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf//注释掉bind-address = 127.0.0.1 mysql -u root -p password : 你的密码 mysql>use mysql; mysql>select 'host' from user where user='root'; mysql>update user set host = '%' where user ='root'; mysql>flush privileges; //可以远程ssh连接了,记住要开启服务3306端口
4. 安装 php
apt install -y php7.2 php7.2-fpm php7.2-mysql
5. 配置nginx的conf文件以达到域名访问项目的目的,这里不再赘述。
原文章:https://learnku.com/articles/21270 二次修改
随机推荐
- Mysql允许远程链接(直接使用navicat走非ssh通道连接)的方法
- windows phpStudy ThinkPHP 5.1 Workerman 快速上手指南
- Git忽略规则和.gitignore规则不生效的解决办法
- laravel redis 操作命令集
- 开发 Composer 包详细步骤
- 如何在ubuntu上安装多个版本的php?并顺畅切换使用[其它系统类似原理]
- laravel左连接leftJoin多条where语句
- 可扩展高可用 Seafile 集群
- 在阿里云ECS服务器Ubuntu16.04LTS上部署apache2+php+mysql环境
- php导出数据到excel,防止身份证等数字字符格式变成科学计数的方法
文章评论
未开放






