liziyu 发布的文章

1.D2admin

开源地址:https://github.com/d2-projects/d2-admin
文档地址:https://d2.pub/zh/doc/d2-admin/
效果预览:https://d2.pub/d2-admin/preview/#/index
开源协议:MIT

2.vue-element-admin

开源地址:https://github.com/PanJiaChen/vue-element-admin
文档地址:https://panjiachen.github.io/vue-element-admin-site/zh/
效果预览:https://d2.pub/d2-admin/preview/#/index
开源协议:MIT

3.JEECG-BOOT

开源地址:https://github.com/zhangdaiscott/jeecg-boot
文档地址:https://panjiachen.github.io/vue-element-admin-site/zh/
效果预览:http://boot.jeecg.com/
开源协议:Apache-2.0 License

4.GIN-VUE-ADMIN

开源地址:https://github.com/flipped-aurora/gin-vue-admin
文档地址:https://www.gin-vue-admin.com/
效果预览:http://demo.gin-vue-admin.com/#/layout/dashboard
开源协议:Apache-2.0 License

5.vue-admin-beautiful

开源地址:https://github.com/chuzhixin/vue-admin-beautiful
文档地址:https://www.gin-vue-admin.com/
效果预览:http://beautiful.panm.cn/
开源协议:MPL-2.0 License

6.Dcat-admin

开源地址:https://github.com/jqhph/dcat-admin
文档地址:http://www.dcatadmin.com/
效果预览:http://103.39.211.179:8080/admin
开源协议:MIT License

7.RuoYi

开源地址:https://gitee.com/y_project/RuoYi
文档地址:https://doc.ruoyi.vip/
效果预览:https://vue.ruoyi.vip/index
开源协议:MIT License

8.renren-fast-vue

开源地址:https://gitee.com/renrenio/renren-fast-vue
文档地址:https://www.renren.io/guide
效果预览:http://demo.open.renren.io/renren-fast/#/home
开源协议:MIT License

9.ant-design-pro

开源地址:https://github.com/ant-design/ant-design-pro
文档地址:https://pro.ant.design/index-cn/
效果预览:https://pro.ant.design/
开源协议:MIT License

10.iview-admin

开源地址:https://github.com/iview/iview-admin
文档地址:https://lison16.github.io/iview-admin-doc/
效果预览:https://admin.iviewui.com/home
开源协议:MIT License

11.material-dashboard

开源地址:https://github.com/creativetimofficial/material-dashboard#demo
文档地址:https://demos.creative-tim.com/material-dashboard/docs/2.1/getting-started/introduction.html
效果预览:https://demos.creative-tim.com/material-dashboard/examples/dashboard.html
开源协议:MIT License

12.EAdmin

开源地址:https://github.com/suruibuas/eadmin
文档地址:http://doc.eadmin.com.cn/
效果预览:http://www.eadmin.com.cn/
开源协议:无

源地址:https://mp.weixin.qq.com/s/lGz4Cc5jqGAqqmaOteatvA

目标很明确,就是将MAC自带的php不带使用,使用MAMPPHP作为默认PHP并安装pcntl扩展。

折腾死人了,不过还是成功了。

1、下载并解压源码包
#下载源码包
wget http://us.php.net/distributions/php-7.4.12.tar.gz
# 解压
tar zxvf php-7.4.12.tar.gz
2、下载并解压源码包
#这里需要注意的是 `php-7.4.12/ext/pcntl`为刚刚下载解压后的目录,而后面则是`MAMP`的目录。
cd php-7.4.12/ext/pcntl  /Applications/MAMP/bin/php/php7.4.12/bin/phpize  ./configure --with-php-config=/Applications/MAMP/bin/php/php7.4.12/bin/php-config  make && make install

3、配置指定版本的php.ini文件,到相应位置。

extension=pcntl.so

4、将MAMP下的PHP作为系统默认PHP

1)、sudo vim ~/zshrc 文件。
2)、export PATH="/Applications/MAMP/bin/php/php5.6.30/bin:$PATH" #下相应位置新增这段代码。
3)、source .bash_profile #先:wq保存后执行该代码。
4)、which PHP #查看PHP版本及位置。

5、参考文章

https://blog.csdn.net/yljphp/article/details/96851815
https://blog.csdn.net/cuilei210/article/details/106670261

https://www.zhihu.com/question/35928898

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

已经替换成了国内镜像资源,为先驱点👍

app\middleware.php

<?php
// 全局中间件定义文件
return [
    // 跨域请求
    \think\middleware\AllowCrossDomain::class
];

概念:

Wamp 是 Windows Apache Mysql PHP 集成安装环境,适用于 Windows 系统;
Mamp 是 Mac Apache Mysql PHP 集成安装环境,适用于 Mac OS 系统;

  1. 配置 httpd.conf
    监听多个端口:

    #Listen 12.34.56.78:80
    Listen 80
    Listen 8080
    Listen 8081
    Listen 8082
    Listen 8083
    Listen 8084
    Listen 8085

开启虚拟站点

# Virtual hosts
# Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf

修改为

# Virtual hosts
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
2. 配置 httpd-vhosts.conf

在页尾添加

<VirtualHost *:8081>
ServerAdmin webmaster@dummy-host.localhost
DocumentRoot "/Volumes/Item/Site1/"
ServerName localhost
ServerAlias localhost
ErrorLog "logs/dummy-host.localhost-error.log"
CustomLog "logs/dummy-host.localhost-access.log" common
<Directory "/Volumes/Item/Site1/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


<VirtualHost *:8082>
ServerAdmin webmaster@dummy-host.localhost
DocumentRoot "/Volumes/Item/Site2/"
ServerName localhost
ServerAlias localhost
ErrorLog "logs/dummy-host.localhost-error.log"
CustomLog "logs/dummy-host.localhost-access.log" common
<Directory "/Volumes/Item/Site2/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

原文出自:https://varxzy.com/notes/342.html