Loading... 截图 [Flarum.png][1] [1]: https://cuiyonglv.cn/usr/uploads/2020/10/2084406905.png 简介 Flarum是一个免费的开源的论坛软件,很精简,有如下几个特点: 简单, 她拥有响应的用户界面,惊叹触摸设备使用体验。 快速, 只有 ~130KB js,瞬间加载完成。 可扩展的, 你可以调整她的使用场景。 安装 环境要求:PHP 5.6+、MySQL 5.5+、Nginx。 1、安装宝塔 #CentOS系统 wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh #Ubuntu系统 wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh #Debian系统 wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh 安装完成后,进入面板,点击左侧软件管理,然后安装PHP 5.6、Nginx、Mysql 5.5+。 接下来再找到左侧软件管理-PHP管理-设置-安装Fileinfo扩展。 #如果Fileinfo拓展安装失败,就是内存太小,我们可以添加swap,不适用于ovz 1、脚本添加,脚本地址:https://www.moerats.com/archives/722/。 2、面板添加,找到左侧软件管理-系统工具-安装Linux工具箱,然后进入工具箱添加。 2、安装Composer curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer 3、安装程序 我们先点击左侧网站,添加域名,并设置好Mysql数据库用户名和密码信息。 然后从宝塔文件夹管理器访问根目录,删掉所有文件,再使用命令: #进入网站根目录,将路径修改成自己的再运行 cd /www/wwwroot/www.moerats.com composer create-project flarumchina/flarumchina . --stability=beta #授权 chown -R www:www ./ chmod -R 775 assets storage 4、添加伪静态 点击站点设置-伪静态设置,添加以下代码: location / { try_files $uri $uri/ /index.php?$query_string; } location /api { try_files $uri $uri/ /api.php?$query_string; } location /admin { try_files $uri $uri/ /admin.php?$query_string; } location /flarum { deny all; return 404; } location ~ .php$ { fastcgi_split_path_info ^(.+.php)(/.+)$; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; } 这时候打开站点就可以开始安装了。 其它操作 #底部加统计 vendor/flarum/core/views/app.blade.php #去掉网络字体 vendor/flarum/core/src/Http/WebApp/WebAppView.php 相关资料 1、markdown支持:http://discuss.flarum.org.cn/d/221 2、中文语言包:http://flarum.org/docs/languages/ 3、中文github及程序下载:https://github.com/justjavac/Flarum 4、中文语言包下载:https://github.com/Flarum-Chinese/flarum-ext-simplified-chinese/releases 5、SMTP相关:https://github.com/flarum/core/issues/258 6、论坛类程序推荐:https://www.v2ex.com/t/268523 7、中文优化版:http://discuss.flarum.org.cn/d/402 8、插件整理:http://discuss.flarum.org.cn/d/306! 最后修改:2020 年 10 月 26 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏