赞
回答
收藏
店滴CMS 754 人阅读 | 0 人回复 | 2021-12-06
108
105
2万
管理员
拉取店滴官方docker镜像
docker pull diandi029/nginx:v1.0.0 查看镜像 docker images 根据镜像创建并运行容器 docker run -itd -p 8888:80 dnmp_nginx docker run -itd -p 8888:80 dnmp_nginx 查看容器 docker ps 进入容器 docker exec -it 7b78e90961d2 /bin/bash
初始环境启动php,redis,重新加载nginx配置文件 : /usr/sbin/php-fpm7.4 & /etc/init.d/nginx check-reload & nohup redis-server &
apt-get update 进入容器 docker exec -it 48f1d894d852 /bin/bash
https://blog.csdn.net/qq_40016971/article/details/107887486
cd /usr/local/php/etc
https://learnku.com/articles/26066 ps aux | grep php-fpm 如果运行在IP上(而不是通过Unix套接字),那么你也可以检查端口: docker run --rm -v /var/run/docker.sock:/var/run/docker.sock red5d/docker-autocompose portainer-admin netstat -an | grep :9000 或者使用nmap: https://blog.csdn.net/struggle_boy/article/details/109816678 /etc/init.d/nginx check-reload https://www.cnblogs.com/riyuexingchen/p/14036120.html redis: https://blog.csdn.net/whatday/article/details/99965950 http://docker.tuhuokeji.com:8888/index.php nmap localhost -p 9000 https://www.cnblogs.com/zlw-xyz/p/14339512.html
https://blog.csdn.net/wujizhishui/article/details/104520831
、安装 add-apt-repository 命令 apt-get install software-properties-common 1 二、添加第三方源
deb http://deb.debian.org/debian bullseye main
deb http://security.debian.org/debian-security bullseye-security main
deb http://deb.debian.org/debian bullseye-updates main
docker commit -m "店滴镜像" -a "wangchunsheng" 7b78e90961d2 diandi-nginx:v1.0.0
add-apt-repository ppa:ondrej/php apt-get update 1 2 三、安装php apt-get install php7.4 php7.4-fpm php7.4-mysql php7.4-gd php7.4-mbstring php7.4-bcmath php7.4-sqlite3 php7.4-cli php7.4-soap 1 四、启动PHP service php7.4-fpm start php -v # 查看PHP版本信息 php -m # 查看PHP加在的扩展 php -i # 命令行的phpinfo() ————————————————
最后,我已经读过你要求的状态,但我的经验证明这是不可靠的:
/etc/init.d/php5-fpm status
制作镜像并提交: https://www.cnblogs.com/codehui/p/docker_pull_push.html
使用道具 举报
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
chunchun
发表主题 108
独角仙 2022-07-19
chunchun 2022-06-18
chunchun 2022-06-14
王春生 2022-06-12
chunchun 2022-06-09
chunchun 2022-06-02
chunchun 2022-04-01