❤️ 本項目 GitHub / Gitee(碼雲),目前已在公司產品應用,運行在數個客戶服務器內。php
f-admin基礎權限後臺是一套基於Laravel框架開發的系統,不須要開發者重複沒必要要的工做,就能夠實現後臺功能的快速開發,其主要特色包括:html
f-admin的運行環境要求PHP5.4以上;laravel框架要求爲5.4。
線上DEMO f-admin
你也能夠用手機掃下二維碼查看手機效果 前端
效果預覽mysql
- [首頁](#首頁) - [用戶管理](#用戶管理) - [角色管理](#角色管理) - [權限管理](#權限管理) - [菜單管理](#菜單管理) - [日誌管理](#日誌管理)
安裝步驟linux
- [1.獲取代碼](#1獲取代碼) - [2.安裝依賴](#2安裝依賴) - [3.生成APP_KEY](#3生成APP_KEY) - [4.修改`env`配置](#4修改-env-配置) - [5.數據庫遷移](#5數據庫遷移) - [6.訪問首頁](#6訪問首頁)
環境配置nginx
- [1.windows](#1windows) - [2.linux(apache)](#2linuxapache) - [3.linux(nginx)](#3linuxnginx)
新建一個文件夾,進入該文件夾,利用git等工具輸入如下命令:laravel
git init git clone https://github.com/fangzesheng/f-admin.git
composer install
cp .env.example .env php artisan key:generate
.env
配置DB_CONNECTION=mysql DB_HOST=your_host DB_PORT=your_port DB_DATABASE=your_db DB_USERNAME=your_username DB_PASSWORD=your_pwd CACHE_DRIVER=array //將file改成array
php artisan migrate composer dump-autoload php artisan db:seed
若是在執行php artisan migrate增長表操做出現字段長度過長錯誤時,則多是由於mysql版本低於5.5.3,解決方法:
記得先將新建數據庫裏面的表清空!!!
use Illuminate\Support\Facades\Schema; public function boot() { Schema::defaultStringLength(191); }
訪問本身的配置好的域名
用戶名:admin
密碼:f123456git
<VirtualHost *:80> DocumentRoot E:\test\public ServerName www.test.com <Directory "E:\test\public"> AllowOverride All order deny,allow Require all granted </Directory> </VirtualHost>
<VirtualHost *:80> DocumentRoot /data/wwwroot/default/f-admin/public ServerName www.fang99.cc <Directory "/data/wwwroot/default/f-admin/public"> AllowOverride All order deny,allow Require all granted </Directory> </VirtualHost>
server { listen 8088; server_name demo.fang99.cc; location / { index index.php index.html; root /var/www/f-admin/public/; try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { root /var/www/f-admin/public/; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors on; include /etc/nginx/fastcgi.conf; } }
若是你以爲這個開源項目對你有用,歡迎star你懂的!謝謝:)github