# 3cxo **Repository Path**: webjust/3cxo ## Basic Information - **Project Name**: 3cxo - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-09-27 - **Last Updated**: 2026-10-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ThinkPHP 6.0 =============== > 运行环境要求PHP7.2+,兼容PHP8.1 - Nginx1.15.11 - MySQL5.7.26 - php7.3.4nts ## 安装 ~~~ composer create-project topthink/think tp 6.0.* ~~~ 如果需要更新框架使用 ~~~ composer update topthink/framework ~~~ ## 文档 [完全开发手册](https://www.kancloud.cn/manual/thinkphp6_0/content) -------------- ## 部署 1. 安装phpstudy https://public.xp.cn/upgrades/phpStudy_64.zip 环境变量: PHP; GIT; COMPOSER ~~~ D:\Program Files\Git D:\phpstudy\Extensions\php\php7.3.4nts D:\Program Files\Python C:\ProgramData\ComposerSetup\bin ~~~ 2.安装composer https://getcomposer.org/Composer-Setup.exe 检查 PHP 环境 ~~~ php -v php -m | findstr "mbstring openssl pdo" composer --version composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ --配置国内镜像 ~~~ 3.部署TP6 ~~~ 进入根目录 cd /d D:\phpstudy\WWW\3c.xo composer create-project topthink/think tp6 配置 Nginx 站点 server { listen 80; server_name 3c.xo; root D:/phpstudy/WWW/3c.xo/tp6/public; index index.php index.html; location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; } } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } ~~~ 4.将代码部署到gitee ~~~ 1.在 Gitee 创建远程仓库 2.在本地项目目录初始化 Git cd /d D:\phpstudy\WWW\3c.xo\tp6 git init git remote add origin https://gitee.com/3cxo.git git add . git commit -m "init" git push -u origin master ~~~ 5.部署局域网访问 ~~~ 1.确认 Nginx 监听配置 server { listen 80; # 正确:监听所有网络接口 server_name 3c.xo; root D:/phpstudy/WWW/3c.xo/tp6/public; # ... 其他配置 } server { listen 80 default_server; # 加上 default_server server_name 3c.xo _; # 加上 _ 表示兜底 root D:/phpstudy/WWW/3c.xo/tp6/public; index index.php index.html; # ... 其余 location 配置保持不变 } ~~~