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

推荐订阅源

月光博客
月光博客
Martin Fowler
Martin Fowler
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Last Watchdog
The Last Watchdog
S
Schneier on Security
C
Cisco Blogs
P
Privacy International News Feed
T
Tenable Blog
Spread Privacy
Spread Privacy
Recent Commits to openclaw:main
Recent Commits to openclaw:main
N
News and Events Feed by Topic
Security Archives - TechRepublic
Security Archives - TechRepublic
阮一峰的网络日志
阮一峰的网络日志
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
大猫的无限游戏
大猫的无限游戏
Project Zero
Project Zero
GbyAI
GbyAI
N
Netflix TechBlog - Medium
T
Tor Project blog
雷峰网
雷峰网
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Threat Research - Cisco Blogs
Cyberwarzone
Cyberwarzone
L
LangChain Blog
MyScale Blog
MyScale Blog
C
CERT Recently Published Vulnerability Notes
C
Check Point Blog
G
Google Developers Blog
T
Tailwind CSS Blog
L
LINUX DO - 热门话题
宝玉的分享
宝玉的分享
IT之家
IT之家
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Announcements
Recent Announcements
T
The Exploit Database - CXSecurity.com
Hacker News: Ask HN
Hacker News: Ask HN
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
Engineering at Meta
Engineering at Meta
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Google Online Security Blog
Google Online Security Blog
Help Net Security
Help Net Security
H
Hacker News: Front Page
小众软件
小众软件
U
Unit 42
Apple Machine Learning Research
Apple Machine Learning Research
P
Privacy & Cybersecurity Law Blog
T
Threatpost

博客园 - 尘梦

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


}