上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: https://static.kancloud.cn/phpw/wp/97346 https://blog.csdn.net/litao2/category_1282850.html 阅读全文
posted @ 2022-07-25 18:04 快乐的在一起 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 1.把容器制作成镜像 //REPOSITORY: mynginx , TAG:v1.0 docker commit -m="nginx测试环境" -a="read" 8e82a3116d76 mynginx:v1.0 2.将你想要上传的镜像打标签 //bbf50057aab1 为IMAGE ID / 阅读全文
posted @ 2022-07-15 14:14 快乐的在一起 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 1、找到php.ini,一般在/usr/local/etc/php/php.ini中,通过copy复制到宿主机之后去掉php_mysql.so前面的分号后上传 2、进入容器扩展安装目录/usr/local/bin 3、执行命令安装扩展 ./docker-php-ext-install mysql . 阅读全文
posted @ 2022-07-14 18:27 快乐的在一起 阅读(1057) 评论(0) 推荐(0) 编辑
摘要: # docker 中下载 mysql docker pull mysql #启动 docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=Lzslov123! -d mysql #进入容器 docker exec -it mysql b 阅读全文
posted @ 2022-07-14 15:01 快乐的在一起 阅读(2557) 评论(0) 推荐(0) 编辑
摘要: 在前面我们在docker内搭建了PHP+Nginx开发环境; 但是在一次重启机器之后,发现原先配置的项目502错误; 查看PHP日志是: connect() failed (111: Connection refused) while connecting to upstream, client: 阅读全文
posted @ 2022-07-11 09:45 快乐的在一起 阅读(757) 评论(0) 推荐(0) 编辑
摘要: Docker ngnix 无法启动? 新建了一个docker容器,修改了nginx的配置文件时候,少了一个分号,nginx配置错误,导致nginx容器启动不了。 因为容器没有启动,所以不能进入容器里面改。 查看报错的docker容器的方式:docker logs 容器名 解决方案如下: 1、首先把容 阅读全文
posted @ 2022-07-10 14:15 快乐的在一起 阅读(2233) 评论(0) 推荐(0) 编辑
摘要: 先安装centos,不选版本,默认最新版 [C:\~]$ docker pull centos 查看安装的镜像 [C:\~]$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE morton/ubuntu dev f2657d57c189 3 mo 阅读全文
posted @ 2022-07-07 19:02 快乐的在一起 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 解决方案: 第一步: [root@k ~]# cd /etc/yum.repos.d/ 第二步: [root@k ~]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* [root@k ~]# sed -i 's|#base 阅读全文
posted @ 2022-07-07 17:50 快乐的在一起 阅读(388) 评论(0) 推荐(0) 编辑
摘要: php swoole+websocket 客户端代码 备注: 测试发现在docker容器内启动php服务9502,不需要经过nginx配置来连接,直接在容器设置端口,用前端指向到PHP端口访问。 <!DOCTYPE html> <html> <head> <title></title> <meta 阅读全文
posted @ 2022-07-04 15:22 快乐的在一起 阅读(285) 评论(0) 推荐(0) 编辑
摘要: Centos7使用的是firewalld作为防火墙,而不是iptables了 在root权限下: 查看防火墙状态 有两种方法 : 方式1、 firewall-cmd --state 现在处于打开状态。 方式2、 systemctl status firewalld active,处于打开状态。 关闭 阅读全文
posted @ 2022-07-04 11:50 快乐的在一起 阅读(1624) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页