题记:xx天在xx地方看到有人分享Snipe IT 资产管理系统,在Windows搭建测试,记下笔记
- 运行环境和下载地址
Snipe-IT最新版本地址:https://github.com/snipe/snipe-it/releases/latest
phpStudy 下载地址:https://www.xp.cn/
操作系统 | Windows7 sp1 x64 企业版 |
php Study | Version 8.1.0.1 |
Snipe-IT | Version v4.9.2 - build 4352 |
Nginx | Version 1.15.11 |
PHP | Version 7.2.9nts |
Mysql | Version 5.7.26 |
composer | Version 1.8.5 |
2.安装phpstudy并配置安装所需环境
phpStudy 安装 下一步->下一步...>完成
Snipe-IT 所需环境配置请参考官方文档 https://snipe-it.readme.io/docs/installation
按照官方文档配置.env 文件
(1) 修改文件夹 .env.example 为 .env
# --------------------------------------------
# REQUIRED: BASIC APP SETTINGS
# --------------------------------------------
APP_ENV=production
APP_DEBUG=false
APP_KEY=ChangeMe
APP_URL=http://snipt.it
APP_TIMEZONE='UTC'
APP_LOCALE=zh-CN
MAX_RESULTS=500
# --------------------------------------------
# REQUIRED: DATABASE SETTINGS
# --------------------------------------------
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_DATABASE=snipeDocument
DB_USERNAME=snipe_user
DB_PASSWORD=password123
DB_PREFIX=null
DB_DUMP_PATH='D:\\phpstudy_pro\\Extensions\\MySQL5.7.26\\bin\\'
DB_CHARSET=utf8mb4
DB_COLLATION=utf8mb4_unicode_ci
(2) 添加数据库
mysql -u root -p
create database snipeDocument;
show databases;
create user snipe_user;
grant all on snipeDocument.* to 'snipe_user'@'localhost' identified by 'password123';
composer install --no-dev --prefer-source
php artisan key:generate
========未完待续========================