首页 > 其他分享 >一个练习项目,好玩的bbs-1

一个练习项目,好玩的bbs-1

时间:2024-06-21 14:58:55浏览次数:10  
标签:exe bbs study 练习 server workspace studys 好玩

目录结构

 nginx配置:

    upstream bbs_upstream {
        server 127.0.0.1:1081; #php
        server 127.0.0.1:1086; #csharpe
        server 127.0.0.1:1087; #java

        server 127.0.0.1:1084; #ruby-sinatra
        server 127.0.0.1:1104; #ruby-busker
        server 127.0.0.1:1105; #ruby-ramaze

        server 127.0.0.1:1080; #nodejs-express
        server 127.0.0.1:1100; #nodejs-koa
        server 127.0.0.1:1101; #nodejs-hapi
        server 127.0.0.1:1102; #nodejs-restify
    server 127.0.0.1:1103; #nodejs-fastify

        server 127.0.0.1:1083; #python.cherrypy
        server 127.0.0.1:1088; #python.tornado
        server 127.0.0.1:1089; #python.flask
        server 127.0.0.1:1090; #python.fastapi
        server 127.0.0.1:1091; #python.bottle
        server 127.0.0.1:1092; #python.webpy
        server 127.0.0.1:1093; #python.pyramid

        server 127.0.0.1:1085; #go.gin
        server 127.0.0.1:1094; #go.iris
        server 127.0.0.1:1095; #go.echo
        server 127.0.0.1:1096; #go.beego
        server 127.0.0.1:1097; #go.chi

        server 127.0.0.1:1082; #perl.mojolicious
        server 127.0.0.1:1098; #perl.dancer
        server 127.0.0.1:1099; #perl.limper
    }

    server {
        listen       99;
        server_name  localhost;

        location / {
        root   D:/workspace/studys/study_bbs/static;
            index  index.html index.htm postindex.html;
        autoindex on;
        autoindex_exact_size off;
        autoindex_localtime on;
        }

        location /api/ {
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_pass_header Server;
            proxy_pass_header Date;
            proxy_pass_header X-Accel;

        proxy_pass   http://bbs_upstream/;
        }
    }

 

启动脚本:

@echo off

echo Stopping nginx...  
taskkill /F /IM nginx.exe > nul

echo Stopping c# study_bbs_csharpe.exe...
taskkill /F /IM study_bbs_csharpe.exe > nul

echo Starting java -jar study_bbs_java-0.0.1-SNAPSHOT.jar..
RunHiddenConsole java -jar D:\workspace\java_workspace\study_bbs_java\target\study_bbs_java-0.0.1-SNAPSHOT.jar

cd D:\workspace\studys\study_bbs_csharpe\bin\Release\net8.0
RunHiddenConsole study_bbs_csharpe.exe

cd D:\workspace\studys\study_bbs\
RunHiddenConsole D:\software\php-7.4.9\php.exe D:\workspace\studys\study_bbs\start_web_reactphp.php

cd D:\workspace\studys\study_bbs\
RunHiddenConsole D:\software\Ruby27-x64\bin\ruby.exe D:\workspace\studys\study_bbs\start_web_sinatra.rb
RunHiddenConsole D:\software\Ruby27-x64\bin\ruby.exe D:\workspace\studys\study_bbs\start_web_busker.rb
RunHiddenConsole D:\software\Ruby27-x64\bin\ruby.exe D:\workspace\studys\study_bbs\start_web_ramaze.rb

cd D:\workspace\studys\study_bbs\
RunHiddenConsole D:\software\Python310\python.exe D:\workspace\studys\study_bbs\start_web_cherrypy.py
RunHiddenConsole D:\software\Python310\python.exe D:\workspace\studys\study_bbs\start_web_tornado.py
RunHiddenConsole D:\software\Python310\python.exe D:\workspace\studys\study_bbs\start_web_flask.py
RunHiddenConsole D:\software\Python310\python.exe D:\workspace\studys\study_bbs\start_web_fastapi.py
RunHiddenConsole D:\software\Python310\python.exe D:\workspace\studys\study_bbs\start_web_bottle.py
RunHiddenConsole D:\software\Python310\python.exe D:\workspace\studys\study_bbs\start_web_pyramid.py
RunHiddenConsole D:\software\Python310\python.exe D:\workspace\studys\study_bbs\start_web_webpy.py 1092

cd D:\workspace\studys\study_bbs\
RunHiddenConsole D:\software\go\bin\go.exe run D:\workspace\studys\study_bbs\start_web_gin.go
RunHiddenConsole D:\software\go\bin\go.exe run D:\workspace\studys\study_bbs\start_web_iris.go
RunHiddenConsole D:\software\go\bin\go.exe run D:\workspace\studys\study_bbs\start_web_echo.go
RunHiddenConsole D:\software\go\bin\go.exe run D:\workspace\studys\study_bbs\start_web_beego.go
RunHiddenConsole D:\software\go\bin\go.exe run D:\workspace\studys\study_bbs\start_web_chi.go

cd D:\workspace\studys\study_bbs\
RunHiddenConsole D:\software\Strawberry\perl\bin\perl.exe D:\workspace\studys\study_bbs\start_web_mojolicious.pl
RunHiddenConsole D:\software\Strawberry\perl\bin\perl.exe D:\workspace\studys\study_bbs\start_web_dancer.pl
RunHiddenConsole D:\software\Strawberry\perl\bin\perl.exe D:\workspace\studys\study_bbs\start_web_limper.pl

cd D:\workspace\studys\study_bbs\
RunHiddenConsole D:\software\nodejs\node.exe D:\workspace\studys\study_bbs\start_web_express.js
RunHiddenConsole D:\software\nodejs\node.exe D:\workspace\studys\study_bbs\start_web_koa.js
RunHiddenConsole D:\software\nodejs\node.exe D:\workspace\studys\study_bbs\start_web_hapi.js
RunHiddenConsole D:\software\nodejs\node.exe D:\workspace\studys\study_bbs\start_web_restify.js
RunHiddenConsole D:\software\nodejs\node.exe D:\workspace\studys\study_bbs\start_web_fastify.js

 

实际上,我是用几乎所有开发语言做了一个学习,练习的小项目,实际效果:

 

 

 

 

 

标签:exe,bbs,study,练习,server,workspace,studys,好玩
From: https://www.cnblogs.com/xuxiaobo/p/18260526

相关文章

  • 2、拆位练习 - 课件
    基础知识一、拆位原理除法运算符/的拆位用法在拆位中,我们可以用除法运算符/来获取一个数字的高位部分。具体来说,就是用这个数字去除以一个适当的倍数(通常是10的幂),得到的商就是高位部分。例如,假设我们有一个数字n=1234,我们想要获取它的百位及以上的部分,就......
  • 01个人课堂练习
    //policy123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828......
  • 02个人课堂练习
    packagecom.example.policyquery;importandroid.content.Intent;importandroid.os.Bundle;importandroid.util.Log;importandroid.view.View;importandroid.widget.AdapterView;importandroid.widget.ArrayAdapter;importandroid.widget.AutoCompleteTextView;import......
  • 个人课堂练习01
    个人课堂练习013月15日今天进行了web端的政策查询的实现,借鉴了一些学长的一些代码,//policy*{    padding: 0;    margin: 0;    font-family: 'OpenSansLight';    letter-spacing:.05em;    margin: 0 auto;    text-align:center;......
  • 个人课堂练习02
    个人课堂练习025月15日今天是将web端的政策查询使得在手机端也能实现,同样借鉴了学长的packagecom.example.policyquery;importandroid.content.Intent;importandroid.os.Bundle;importandroid.util.Log;importandroid.view.View;importandroid.widget.AdapterView;impor......
  • 个人课堂练习01
    今天建民让我们在课堂上实现安卓端的连接数据库,然后实现增删改,我在课堂上三个小时只实现了mysql本地数据库的连接,然后在回到宿舍后,弄到了晚上22点,我实现了增删改以下是我的代码:pckagecom.example.newone;importandroidx.appcompat.app.AppCompatActivity;importandroi......
  • python练习5
    (五)、设计并实现平面点类Point【题目描述】定义一个平面点类Point,对其重载运算符关系运算符,关系运算以距离坐标原点的远近作为基准,远的为大。程序完成对其的测试。【源代码程序】importmathclassPoint():    def__init__(self,x,y):        self.x=x  ......
  • 【递归、搜索与回溯】综合练习二
    综合练习二1.组合2.目标和3.组合总和4.字母大小写全排列点赞......
  • 运筹学练习Python精解——动态规划
    练习1设国家拨给60万元投资,供四个工厂扩建使用,每个工厂扩建后的利润与投资额的大小有关,投资后的利润函数如下表所示,试给出收益最大的投资计划。利润\投资0102030405060\(g_1(r)\)0205065808585\(g_2(x)\)0204050556065\(g_3(x)\)0256085......
  • CMake Tutorial (3.30-rc3版) 练习和点评
    CMakeTutorial练习和点评Author:ChrisZZTime:2024.06.1623:37:00CMake官方文档提供了CMakeTutorial,目前最新版是CMake-3.30-rc3,有12个Step供用户练习。CMakeTutorial是从CMake3.16版本开始能从官方网页找到,并且每一版都有改进Tutorial内容。作为有实际C/......