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

推荐订阅源

量子位
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
NISL@THU
NISL@THU
T
Threat Research - Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
Lohrmann on Cybersecurity
V
Visual Studio Blog
Cyberwarzone
Cyberwarzone
D
Docker
The Hacker News
The Hacker News
C
CERT Recently Published Vulnerability Notes
Vercel News
Vercel News
Project Zero
Project Zero
S
Schneier on Security
aimingoo的专栏
aimingoo的专栏
I
Intezer
腾讯CDC
M
MIT News - Artificial intelligence
Hugging Face - Blog
Hugging Face - Blog
P
Palo Alto Networks Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
AWS News Blog
AWS News Blog
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Vulnerabilities – Threatpost
G
Google Developers Blog
N
Netflix TechBlog - Medium
The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
A
Arctic Wolf
S
Securelist
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
Recent Announcements
Recent Announcements
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 热门话题
T
Threatpost
Latest news
Latest news
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
The GitHub Blog
The GitHub Blog
T
Tor Project blog
P
Proofpoint News Feed

博客园 - 尘梦

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;      
        }


}