Giter Site home page Giter Site logo

cntaoge / ss-panel-v3-mod_uim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anankke/sspanel-uim

0.0 1.0 0.0 67.88 MB

基于ss-panel-v3-mod的 UI 修改版 bak

License: MIT License

PHP 32.97% HTML 4.83% CSS 12.30% JavaScript 23.39% Smarty 21.51% Shell 0.01% Vue 5.01%

ss-panel-v3-mod_uim's Introduction

欢迎使用ss panel v3 mod 再次修改版

搭建教程


前端面板: 安装宝塔 www.bt.cn 配置PHP (宝塔用户) 在禁用函数一栏找到 system proc_open proc_get_status 去除它 在性能调整中,把 PHP 运行模式设置为 静态 在配置修改中 按 Ctrl+F 搜索 display_errors = 改为 Off 后保存

web环境配置好后

cd /你的网站目录  例:cd /www/wwwroot/你的网站目录  
yum update
yum install git -y
git clone -b master https://github.com/Anankke/ss-panel-v3-mod_Uim.git tmp && mv tmp/.git . && rm -rf tmp && git reset --hard
chown -R root:root *
chmod -R 755 *
chown -R www:www storage
php composer.phar install

移除防跨目录 修改网站目录 /你的网站目录/public;

Example Nginx Configuration伪静态设置

location / {
    try_files $uri /index.php$is_args$args;
}

配置数据库 登陆数据库

mysql -u root -p                           // 这里需要输入密码
mysql>CREATE DATABASE database_name;       // 新建数据库
mysql>use database_name;                   // 选择数据库
mysql>source /网站目录/sql/glzjin_all.sql;  // 导入.sql文件

配置数据库访问权限为所有人

配置 sspanel

cd /网站目录
cp config/.config.php.example config/.config.php
vi config/.config.php

重启Nginx和php 创建管理员并同步用户

php xcat createAdmin          //创建管理员
php xcat syncusers            //同步用户
php xcat initQQWry            //下载IP解析库
php xcat resetTraffic         //重置流量
php xcat initdownload         //下载ssr程式

设置定时任务 执行 crontab -e命令, 添加以下四条

30 22 * * * php /网站目录/xcat sendDiaryMail
0 0 * * * php -n /网站目录/xcat dailyjob
*/1 * * * * php /网站目录/xcat checkjob
*/1 * * * * php /网站目录/xcat syncnode

如果需要自动备份,可模仿以下两例,自行添加一条

例1:每20分钟备份1次(若间隔大于60分钟,看例2):

*/20 * * * * php -n /网站目录/xcat backup

例2:每20小时备份1次(若间隔大于24小时,自行Google):

0 */20 * * * php -n /网站目录/xcat backup

如果需要财务报表,可选添加以下三条

5 0 * * * php /网站目录/xcat sendFinanceMail_day
6 0 * * 0 php /网站目录/xcat sendFinanceMail_week
7 0 1 * * php /网站目录/xcat sendFinanceMail_month

如果需要检测被墙,添加以下一条

*/1 * * * * php /网站目录/xcat detectGFW

如果要用到radius,需要添加下面这三条

*/1 * * * * php /网站目录/xcat synclogin
*/1 * * * * php /网站目录/xcat syncvpn
*/1 * * * * php -n /网站目录/xcat syncnas

后端一键安装脚本

安装 For CentOS 7 x64

yum install wget -y && wget https://raw.githubusercontent.com/SuicidalCat/Airport-toolkit/master/ssr_node_c7.sh && chmod +x ssr_node_c7.sh && ./ssr_node_c7.sh

卸载

systemctl disable ssr_node && \rm /usr/lib/systemd/system/ssr_node.service && \rm -rf /soft/shadowsocks

设置开机启动

systemctl enable ssr_node

服务启动

systemctl start ssr_node

服务停止

systemctl stop ssr_node

版本升级 cd /www/wwwroot/你网站目录 到站点根目录(保证.git目录存在)执行

git fetch --all
git reset --hard origin/master
git pull

注意:你会丢失除 .config.php 外目前自己的所有改动,请做好文件备份,如不想丢失改动, 请参考这个文章7.3 Git 工具- 储藏与清理

2.迁移config 执行命令

php /网站目录/xcat update

迁移/更新之前会自动备份原config为.config.php.bak

迁移/更新完成之后会输出新旧配置之间的差异

3.UI更新后请刷新浏览器缓存,有CDN需要清理CDN内缓存的CSS和JS文件,同时检查并清除nginx缓存 dev需要安装nodejs和npm 出错提示1:Peer reports incompatible or unsupported protocol version.## 原因:Git版本过低

解决方法:

1、安装所需软件包

yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yum install gcc perl-ExtUtils-MakeMaker

2、下载&安装

cd /usr/src
wget https://www.kernel.org/pub/software/scm/git/git-2.7.3.tar.gz
tar xzf git-2.7.3.tar.gz
cd git-2.7.3
make prefix=/usr/local/git all
make prefix=/usr/local/git install
echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
source /etc/bashrc

3、检查版本:2.X.X版本即可

git --version

ss-panel-v3-mod_uim's People

Contributors

laurieryayoi avatar thecgdf avatar nimaqu avatar sukkaw avatar tonyzzzzzz avatar xcxnig avatar anankke avatar galaxychuck avatar 5aaee9 avatar dumplin233 avatar mxihan avatar tomatofishball avatar colinwood11 avatar leoleoasd avatar geekqu avatar darvenking avatar autisticshark avatar neverbehave avatar iv8 avatar neofelhz avatar idawnlight avatar eeeeleeee avatar aiden3434 avatar eswannn avatar fqrabbit avatar regendsoh avatar cntaoge avatar lhie1 avatar chengyu2333 avatar annakutou avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.