mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-02-12 11:55:35 +00:00
update README.md.
Signed-off-by: niucloud <niucloud@outlook.com>
This commit is contained in:
parent
b896795b39
commit
d64f8b36f8
77
README.md
77
README.md
@ -75,81 +75,11 @@ niucloud-admin是一款快速开发SaaS通用管理系统后台框架,前端
|
||||
|
||||

|
||||
|
||||
### 安装部署
|
||||
#### 宝塔部署
|
||||
- 1.环境要求<br/>
|
||||
|
||||
环境要求<br/>
|
||||
php 8.0 <br/> mysql5.6及以上 <br/> 启用redis <br/> Nignx/Apache
|
||||
- 2.登录网站【<a href='https://gitee.com/niucloud-team/niucloud-admin.git' target="_blank">https://gitee.com/niucloud-team/niucloud-admin/</a>】下载框架源码。
|
||||
- 3.源码放置到宝塔根目录,访问域名/niucloud/public/index.php,进入安装界面,点击下一步,输入数据库安装信息,下一步完成安装。详细教程查看 :arrow_right: <a href='https://www.kancloud.cn/niucloud/niucloud-admin-develop/3148343' target="_blank">【开发手册】 :arrow_left: </a>
|
||||
- 4.redis配置:<br/>
|
||||
①安装redis,如下图:
|
||||

|
||||
②安装php的扩展redis,如下图所示:
|
||||

|
||||
③将redis密码填入到niucloud/.env文件中,如下图:
|
||||

|
||||
|
||||
- 5.配置伪静态<br/>
|
||||
可直接复制下方代码:
|
||||
Nginx配置
|
||||
|
||||
```html
|
||||
location / {
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^(.*)$ /index.php/$1 last;
|
||||
break;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
apache配置
|
||||
```
|
||||
<IfModule mod_rewrite.c>
|
||||
Options +FollowSymlinks -Multiviews
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
|
||||
RewriteEngine on RewriteCond % !^$
|
||||
</IfModule>
|
||||
```
|
||||
粘贴位置如下图:
|
||||

|
||||
|
||||
#### docker快速部署
|
||||
- 1.启动docker,打开终端输入命令行,回车执行命令。
|
||||
|
||||
```
|
||||
docker run -d --name niucloudadmin_php -p 20221:80 niucloud/niucloudadmin_php:1.6.0
|
||||
```
|
||||
- 2.访问配置的虚拟域名或者localhost或者127.0.0.1/niucloud/public/index.php即可进入安装界面。
|
||||
|
||||
#### 前端运行
|
||||
- 1.拉取代码
|
||||
|
||||
```
|
||||
git clone https://gitee.com/niucloud-team/niucloud-admin.git
|
||||
```
|
||||
- 2.安装依赖
|
||||
|
||||
```
|
||||
cd niucloud-admin template
|
||||
npm install
|
||||
```
|
||||
|
||||
- 3.本地运行
|
||||
|
||||
```
|
||||
npm run dev
|
||||
```
|
||||
|
||||
- 4.前端代码打包
|
||||
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
|
||||
快来添加属于你的专属客服吧~
|
||||
|
||||

|
||||
#### 扫描下方二维码加入niucloud-admin开发者交流群
|
||||
@ -184,9 +114,6 @@ npm run build
|
||||
|
||||
6.一切事物有个人喜好的标准,本开源代码意在分享,不喜勿喷。
|
||||
|
||||
### 战略合作伙伴
|
||||

|
||||
|
||||
### 版权信息
|
||||
版权所有Copyright 2015-2035 niucloud-admin 版权所有
|
||||
All rights reserved。
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user