静看光阴荏苒
不管不顾不问不说也不念

JAVA版在线要饭系统

好像最近有几个这样的要饭系统233,先是Python后来是PHP,现在又来个JAVA版的。。。

老铁,先star后要饭,钱多多:https://github.com/biezhi/profit

本穷B使用烂大街的CentOS7部署一下这个高大上的要饭系统,先装一下JDK8:

yum -y install java-1.8.0-openjdk*

然后下面的命令一条条复制粘贴就行了,大爷们:

mkdir -p yaofan && cd yaofan
wget https://github.com/biezhi/profit/releases/download/v1.0.0-alpha/profit.tar.gz
tar -xzvf profit.tar.gz
chmod +x tool
./tool start

哦,这个tool有多个控制用法:

./tool stop
./tool restart
./tool status
./tool log
./tool upgrade

有在线升级的功能,点个赞!

现在你可以打开你的主鸡公网IP+端口16777访问到安装页面:

如果你需要支持域名访问,可以安装Nginx进行反向代理,新建一个源:

vi /etc/yum.repos.d/nginx.repo

写入:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1

安装nginx:

yum -y install nginx

接着新建一个nginx站点配置文件:

vi /etc/nginx/conf.d/yaofan.conf

写入:

server {
    listen       80;
    server_name  你的域名;
    
location / {
    proxy_pass       http://127.0.0.1:16777;
    proxy_set_header Host      $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Upgrade   $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_http_version         1.1;
    proxy_redirect             off;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

重启nginx:

systemctl restart nginx

无法正常访问请关闭防火墙和SELinux:

systemctl stop firewalld.service
systemctl disable firewalld.service
vi /etc/selinux/config
SELINUX=disabled
setenforce 0

该要饭系统需要“有赞”的支持,请自行注册有赞/有赞云开发者账号,并开通微小店,详细方法请参考这个wiki:

https://github.com/biezhi/profit/wiki

我的在线要饭站:

http://thanks.233.fi

该要饭系统支持多个模板,同时支持在后台编辑模板,下面是这个要饭系统的一个全新模板:

赞(7)
未经允许不得转载:荒岛 » JAVA版在线要饭系统
分享到: 更多 (0)

评论 14

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    你的要饭死了 :roll:

    云天小窝6年前 (2018-10-02) UC Browser 6.2.4094.1 UC Browser 6.2.4094.1 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 估计是内存吃的太多进程挂了,我把占用内存改小了点就好了。

      LALA6年前 (2018-10-03) Google Chrome 67.0.3396.99 Google Chrome 67.0.3396.99 Windows 10 x64 Edition Windows 10 x64 Edition回复
  2. #2

    lala 哪儿有PHP版本 Java完全不好 哈哈哈哈哈

    loli6年前 (2018-10-02) QQbrowser QQbrowser iPhone iOS 12.1 iPhone iOS 12.1回复
  3. #3

    博主在哪看到的 :neutral:

    demo6年前 (2018-10-03) Firefox 7.0.1 Firefox 7.0.1 Mac OS X  10.6 Mac OS X 10.6回复
    • 什么哪里看到的?这个项目?如果是说这个项目的话,是我在gayhub上面瞎逛看到的。

      LALA6年前 (2018-10-03) Google Chrome 67.0.3396.99 Google Chrome 67.0.3396.99 Windows 10 x64 Edition Windows 10 x64 Edition回复
  4. #4

    lala 可以不再根目录搭建嘛 :cry:

    loli6年前 (2018-10-04) QQbrowser 10.2.2265.400 QQbrowser 10.2.2265.400 Windows 10 x64 Edition Windows 10 x64 Edition回复
  5. #5

    Java的我运行了 程序也安装了 最后安装页面硬是打不开 端口裸奔的 我是哪里出现问题了吗

    小依赖6年前 (2018-10-10) QQbrowser 10.3.2473.400 QQbrowser 10.3.2473.400 Windows 7 x64 Edition Windows 7 x64 Edition回复
  6. #6

    坑爹啊,vultr只要关闭SELINUX=disabled这个,就不能够访问了!

    橙子6年前 (2018-10-26) Google Chrome 68.0.3440.106 Google Chrome 68.0.3440.106 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 还有这么玄学的事情??

      LALA5年前 (2018-10-27) Google Chrome 67.0.3396.99 Google Chrome 67.0.3396.99 Windows 10 x64 Edition Windows 10 x64 Edition回复
  7. #7

    打了一块钱啊哈哈哈哈
    加油哦

    Lixiaobai2335年前 (2018-12-23) MIUI Browser 10.4.2 MIUI Browser 10.4.2 GNU/Linux x64 GNU/Linux x64回复
    • 多谢老哥给面子。

      LALA5年前 (2018-12-25) Google Chrome 70.0.3538.110 Google Chrome 70.0.3538.110 Windows 10 x64 Edition Windows 10 x64 Edition回复

分享创造快乐

广告合作资源投稿