您现在的位置是:首页 > 经验记录>服务器相关>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 二次修改
随机推荐
- Laravel自带SMTP邮件组件实现发送邮件(QQ、163、企业邮箱都可)
- Ubuntu上安装和配置Supervisor及运行pkg_resources.DistributionNotFound:报错处理
- Windows10 WSL2 Ubuntu 宝塔面板无法打开 无法链接host网络 解决办法 图文教程
- ubuntu下nginx环境php7.1安装ZipArchive
- cgywin安装phpredis
- laravel belongsTo和hasOne连接不同数据库的表
- 简体程序(源代码)转为繁体工具:ConvertZ使用教程(图文)
- 各网盘使用油猴进行链接读取的操作方式
- 如何将本地未提交更改合并到另一个Git分支中
- 自建SSR/SS服务记录
文章评论
未开放