Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用免构建的nginx php-fpm 快速运行 本项目 #363

Open
jingjingxyk opened this issue Jun 25, 2024 · 0 comments
Open

使用免构建的nginx php-fpm 快速运行 本项目 #363

jingjingxyk opened this issue Jun 25, 2024 · 0 comments

Comments

@jingjingxyk
Copy link

jingjingxyk commented Jun 25, 2024

意义: 使用免构建安装 nginx php-fpm ,实现快速部署本项目,克隆代码以后,只需要nginx配置正确项目所在目录,即可运行
原理: 静态编译 nginxphp-fpm
支持平台: macos 、linux 、windows(正在实验中)

实操:

git clone https://github.com/zblogcn/zblogphp
git clone git clone https://gitee.com/jingjingxyk/quickstart-nginx-php-fpm.git


cd quickstart-nginx-php-fpm
 
# 下载nginx 
bash  setup-nginx-runtime.sh
 
# 需要下载 php-fpm
bash setup-php-fpm-runtime.sh
 
# 启动静态编译的 nginx 、php-fpm
bash  start.sh
 
# 修改nginx.conf  root 配置 
vi nginx.conf
 
root /home/jingjingxyk/zblogphp  ;
 
# 重新载入nginx配置
bash reload.sh 
 
# 打开浏览器 http://localhost 即可预览本项目

https://www.cnblogs.com/jingjingxyk/p/18253351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant