Win10 下安装 centos

前言,使用 windows 自带的 wsl 安装了 ubuntu ,然后安装了宝塔,但是问题颇多,比如 mysql 会无法启动等原因,然后打算安装 centos 来安装宝塔

window10 开启 wsl ,按照以下图操作,最后一张开启勾选

 

 

 

 然后下载 centos7 ,选择自己较快的地址下载

https://gh.gh2233.ml/https://github.com/mishamosher/CentOS-WSL/releases/download/7.9-2111/CentOS7.zip

https://github.91chi.fun/https://github.com/mishamosher/CentOS-WSL/releases/download/7.9-2111/CentOS7.zip

https://download.fastgit.org/mishamosher/CentOS-WSL/releases/download/7.9-2111/CentOS7.zip

 下载后解压,选择 CentOS7.exe 进行安装

 安装完成后,提示回车结束

然后以管理员身份运行 CentOS7.exe

然后在窗口安装宝塔

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

安装完成,并使用 ifconfig 来查看内网 IP

找到输出的 192 开头的 ip,注意每个人的不同,参考自己的输出,然后替换成宝塔内网面板地址
 

http://192.168.0.103:26500/d01e209d



然后登录面板,完成 lnmp 的开发环境安装

centos 对应环境目录为安装 centos 下的 rootfs 文件夹,宝塔的 web 目录为 www/wwwroot 下

 目前 phpmyadmin 无法访问,正在解决

猜你喜欢

转载自blog.csdn.net/myarche/article/details/129829190