wget https://github.com/snipe/snipe-it/archive/v4.7.5.tar.gz
tar xzvf v4.7.5.tar.gz
cd snipe-it-4.7.5/
curl -sS https://getcomposer.org/installer | php
php composer.phar install --no-dev --prefer-source
cp composer.phar /usr/local/bin/composer
composer global require laravel/installer
chmod 777 -R storage
chmod 777 -R public/uploads
php artisan key:generate
nginx配置:
备注:需要先启动php-frm
root /home/data/eam/snipe-it-4.7.5/public/;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location /js {
root /home/data/eam/snipe-it-4.7.5/public;
}
location /css {
root /home/data/eam/snipe-it-4.7.5/public;
}
location /index.php/css {
rewrite ^(.*)/css/(.+)$ /css/$2 last;
}
location /index.php/js {
rewrite ^(.*)/js/(.+)$ /js/$2 last;
}
location =/.env {
return 404;
}
location ~ \.php$ {
try_files $uri $uri/ =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /roywise/data/eam/snipe-it-4.7.5/public/$fastcgi_script_name;
include fastcgi_params;
}