惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Register - Security
The Register - Security
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MyScale Blog
MyScale Blog
V
Visual Studio Blog
云风的 BLOG
云风的 BLOG
aimingoo的专栏
aimingoo的专栏
C
Check Point Blog
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
L
LangChain Blog
Vercel News
Vercel News
阮一峰的网络日志
阮一峰的网络日志
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
Security @ Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
H
Hacker News: Front Page
L
Lohrmann on Cybersecurity
T
Troy Hunt's Blog
T
Threat Research - Cisco Blogs
A
About on SuperTechFans
T
Threatpost
AWS News Blog
AWS News Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
T
Tor Project blog
Google Online Security Blog
Google Online Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tenable Blog
W
WeLiveSecurity
博客园 - 叶小钗
K
Kaspersky official blog
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
M
MIT News - Artificial intelligence
Hacker News - Newest:
Hacker News - Newest: "LLM"
Engineering at Meta
Engineering at Meta
有赞技术团队
有赞技术团队
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Secure Thoughts
小众软件
小众软件
D
Docker
爱范儿
爱范儿
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News and Events Feed by Topic
S
Schneier on Security
博客园 - 三生石上(FineUI控件)
D
DataBreaches.Net

博客园 - 尘梦

calude code 2.188 根据cli.map还原 centos6 安装gcc 多版本 自定义编译bulma 神通mysql模式转 mysql ai数学书籍 chromedriver 网络安全渗透测试写法 编译php需要的扩展 python 合并同列数据 组合 新的excel vue table 表格记录选中 linux wktohtmlpdf 结合/tmp路径 无法创建问题 c语言开发 php扩展 sm4 macos php 如何链接神通数据库aci layui table tr a标签倒计时 操作 刷新以后继续倒计时 使用c# 开发 php的com组件 世界级地图数据处理 及 联动效果 php 结合pcntl_fork导出excel数据 使用 python 部署chatglm2b php curl 多次发送
macos 下连接php 人大金仓pdo_kdb问题
尘梦 · 2023-08-22 · via 博客园 - 尘梦

准备工作

1.下载docker 桌面版 傻瓜式操作

https://docs.docker.com/desktop/install/mac-install/

2.安装完成后配置一波docker的命令行。

echo export PATH="/Applications/Docker.app/Contents/Resources/bin:$PATH" > ~/.zshrc

3、搞一波php 7.2的镜像

docker pull php:7.2

4、进入镜像配置

docker run --volume=/Users/test/tests:/home --workdir=/var/www/html -p 9020:9000 --runtime=runc -d php:7.2-fpm

配置一波本地 地址 这样就可以使用本地的nginx了

5、启动然后操作

6、本地nginx配置如下:

server
{
    listen 8080;
    server_name sssssss.org;


        root /Users/tesss/tests/teeeeeeeee;
        index index.php index.html error/index.html;

        location ~ [^/]\.php(/|$) 
        {
                    fastcgi_pass   127.0.0.1:9020; //docker映射的端口
                    fastcgi_index  index.php;
                    fastcgi_param  SCRIPT_FILENAME  /home/tests$fastcgi_script_name;  //docker里面/home/tests 路径
                    include        /usr/local/etc/nginx/fastcgi_params;
                include   /usr/local/etc/nginx/paths.conf;      
        }


}