Sign inSign up

tavenli/nginx-php8-mysql8

By tavenli

Updated almost 5 years ago

容器环境 Nginx 1.18 PHP 8.0.8 Mysql 8.0.27

Image
0

217

tavenli/nginx-php8-mysql8 repository overview

环境版本: Ubuntu21.10

Nginx 1.18

PHP 8.0.8

Mysql 8.0.27

使用方式如下:

1、获取容器

docker pull tavenli/nginx-php8-mysql8

2、启动容器

docker run -dt --name nginx-php8-mysql8 -p 8090:80 tavenli/nginx-php8-mysql8

docker run -dt --name nginx-php8-mysql8 -p 92:22 -p 8090:80 -p 3396:3306 tavenli/nginx-php8-mysql8

3、SSH 以及 Mysql的用户名和密码

用户名:root

默认密码:YuanGe

4、容器运行后,通过访问宿主机的IP+8090端口可以访问到phpinfo页面,如:

http://x.x.x.x:8090/info.php

网站默认站点根目录为:/app/www

PHP环境中安装了常用的一些扩展。

5、重启三大服务

service php8.0-fpm restart

service nginx restart

service mysql restart

Tag summary

Content type

Image

Digest

Size

227.2 MB

Last updated

almost 5 years ago

docker pull tavenli/nginx-php8-mysql8