当前位置: 首页 > news >正文

重庆网站建设公司yandex搜索引擎

重庆网站建设公司,yandex搜索引擎,衢州市院士专家工作站建设网站,多配色创意metro风格企业网站织梦模板solo博客源码使用idea编译运行 solo博客开源地址本地运行IDEA 编译执行默认直接编译jar 包编译 solo博客开源地址 项目地址:GitHub - 88250/solo: 🎸 B3log 分布式社区的 Java 博客端节点系统,欢迎加入下一代社区网络。B3log distributed co…

solo博客源码使用idea编译运行

  • solo博客开源地址
  • 本地运行
  • IDEA 编译执行
    • 默认直接编译
    • jar 包编译

solo博客开源地址

项目地址:GitHub - 88250/solo: 🎸 B3log 分布式社区的 Java 博客端节点系统,欢迎加入下一代社区网络。B3log distributed community blog-end node based on Java, welcome to join the next generation community network.

本地运行

本地运行主要用于试用或者生成静态站点,生成静态站点的用法请参考这里。(视频演示教程请看这里)

下载最新的 Solo 包解压,进入解压目录执行:

  • Windows: java -cp "lib/*;." org.b3log.solo.Server
  • Unix-like: java -cp "lib/*:." org.b3log.solo.Server

启动所有参数如下,仅做参考:

--listen_port <LISTEN_PORT>                           listen port, default is 8080
--lute_http <LUTE_HTTP>                               lute http URL, default is http://localhost:8249, see
--runtime_mode <RUNTIME_MODE>                         runtime mode (DEVELOPMENT/PRODUCTION), default is DEVELOPMENT
--server_host <SERVER_HOST>                           browser visit domain name, default is localhost
--server_port <SERVER_PORT>                           browser visit port, default is 8080
--server_scheme <SERVER_SCHEME>                       browser visit protocol, default is http
--static_path <STATIC_PATH>                           browser visit static resource path, default is empty
--static_server_host <STATIC_SERVER_HOST>             browser visit static resource domain name, default is
--static_server_port <STATIC_SERVER_PORT>             browser visit static resource port, default is 8080
--static_server_scheme <STATIC_SERVER_SCHEME>         browser visit static resource protocol, default is http
--unix_domain_socket_path <UNIX_DOMAIN_SOCKET_PATH>   unix domain socket path

IDEA 编译执行

默认使用Java环境,Java版本需要高于1.8,这里使用 jdk17版本;

默认直接编译

在这里插入图片描述

jar启动方式失败:直接启动打包生成的solo.jar

D:\work\solo\target>java -jar solo.jar
错误: 找不到或无法加载主类 org.b3log.solo.Server
原因: java.lang.NoClassDefFoundError: org/b3log/latke/http/BaseServer

推荐启动:进入solo文件夹下,启动成功;

D:\work\solo\target\solo>java -cp "lib/*;." org.b3log.solo.Server
[WARN ]-[2024-10-16 16:40:50]-[org.b3log.latke.Latkes:713]: !!!!Runtime mode is [DEVELOPMENT], please make sure configured it with [PRODUCTION] in latke.properties if deployed on production environment!!!!
[INFO ]-[2024-10-16 16:40:50]-[org.b3log.solo.Server:259]: Solo is booting [ver=4.4.0, os=Windows 11, isDocker=false, inJar=false, luteAvailable=false, pid=28336, runtimeDatabase=MYSQL, runtimeMode=DEVELOPMENT, jdbc.username=xdtian, jdbc.URL=jdbc:mysql://124.71.65.251:3309/solo?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true]
[INFO ]-[2024-10-16 16:40:52]-[org.b3log.solo.util.Skins:73]: Loaded template from classpath
[INFO ]-[2024-10-16 16:40:53]-[org.b3log.solo.Server:306]: Solo is running

jar 包编译

请在 pom.xml 中搜索 maven-assembly-plugin 的注释进行配置即可。请注意:使用 jar 运行不支持:

  • 静态站点生成
  • 可能存在其他未知问题,测试发现看板娘等第三方组件无法使用。

==建议尽量不要打 jar 部署,服务器上请通过 Docker 部署。==但是我服务器资源有限,不想安装docker,直接以编译包的形式运行,节省资源。

pom.xml 中该<plugin>段注释内容放开,然后 maven 编译 package

<!--            <plugin>-->
<!--                <artifactId>maven-assembly-plugin</artifactId>-->
<!--                <configuration>-->
<!--                    <descriptors>-->
<!--                        <descriptor>src/assembly/bin.xml</descriptor>-->
<!--                    </descriptors>-->
<!--                </configuration>-->
<!--                <executions>-->
<!--                    <execution>-->
<!--                        <id>make-assembly</id>-->
<!--                        <phase>package</phase>-->
<!--                        <goals>-->
<!--                            <goal>single</goal>-->
<!--                        </goals>-->
<!--                    </execution>-->
<!--                </executions>-->
<!--            </plugin>--><!-- 需要打 jar 部署的话注释掉上面的配置,启用下面这段配置--><plugin><artifactId>maven-assembly-plugin</artifactId><configuration><appendAssemblyId>false</appendAssemblyId><descriptorRefs><descriptorRef>jar-with-dependencies</descriptorRef></descriptorRefs><archive><manifest><mainClass>org.b3log.solo.Server</mainClass></manifest></archive></configuration><executions><execution><id>make-assembly</id><phase>package</phase><goals><goal>assembly</goal></goals></execution></executions></plugin>

打包后target目录下的 solo.jar 可直接运行。

D:\work\solo\target>java -jar solo.jar
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
[WARN ]-[2024-10-16 16:48:27]-[org.b3log.latke.Latkes:713]: !!!!Runtime mode is [DEVELOPMENT], please make sure configured it with [PRODUCTION] in latke.properties if deployed on production environment!!!!
[INFO ]-[2024-10-16 16:48:28]-[org.b3log.solo.processor.console.StaticSiteConsole:161]: Do not support export static site when running in jar
[INFO ]-[2024-10-16 16:48:28]-[org.b3log.solo.Server:259]: Solo is booting [ver=4.4.0, os=Windows 11, isDocker=false, inJar=true, luteAvailable=false, pid=10780, runtimeDatabase=MYSQL, runtimeMode=DEVELOPMENT, jdbc.username=xdtian, jdbc.URL=jdbc:mysql://124.71.65.251:3309/solo?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true]
[INFO ]-[2024-10-16 16:48:29]-[org.b3log.solo.service.ImportService:76]: Ignored import markdowns when running in jar
[INFO ]-[2024-10-16 16:48:30]-[org.b3log.solo.util.Skins:73]: Loaded template from classpath
[INFO ]-[2024-10-16 16:48:30]-[org.b3log.solo.Server:306]: Solo is running

文章转载自:
http://dinncoannually.bkqw.cn
http://dinncoanhydration.bkqw.cn
http://dinncohot.bkqw.cn
http://dinncopawl.bkqw.cn
http://dinnconarcotine.bkqw.cn
http://dinncodriveway.bkqw.cn
http://dinncohaida.bkqw.cn
http://dinncofarruca.bkqw.cn
http://dinncoreactor.bkqw.cn
http://dinncopaperbark.bkqw.cn
http://dinncobose.bkqw.cn
http://dinncolaughy.bkqw.cn
http://dinncocheeper.bkqw.cn
http://dinncosampler.bkqw.cn
http://dinncounmodish.bkqw.cn
http://dinncothyrotropin.bkqw.cn
http://dinncoarchegonial.bkqw.cn
http://dinncoblacklight.bkqw.cn
http://dinncoasphyxiate.bkqw.cn
http://dinncostatued.bkqw.cn
http://dinncointerleaved.bkqw.cn
http://dinncocortical.bkqw.cn
http://dinncocaptivate.bkqw.cn
http://dinncocando.bkqw.cn
http://dinncogibbet.bkqw.cn
http://dinncoasi.bkqw.cn
http://dinncohandiwork.bkqw.cn
http://dinncoextrovertive.bkqw.cn
http://dinncowriggly.bkqw.cn
http://dinncoovibovine.bkqw.cn
http://dinncobacteriostat.bkqw.cn
http://dinncoyemeni.bkqw.cn
http://dinncoevagination.bkqw.cn
http://dinncounendowed.bkqw.cn
http://dinncodecaffeinate.bkqw.cn
http://dinncotschermakite.bkqw.cn
http://dinncoroundeye.bkqw.cn
http://dinncoregelation.bkqw.cn
http://dinncoapi.bkqw.cn
http://dinncobacking.bkqw.cn
http://dinncotapu.bkqw.cn
http://dinncoroentgenoscope.bkqw.cn
http://dinncoscandaroon.bkqw.cn
http://dinncoserendipity.bkqw.cn
http://dinncomoldau.bkqw.cn
http://dinncochutter.bkqw.cn
http://dinncomegalosaurus.bkqw.cn
http://dinncoempty.bkqw.cn
http://dinncocyanosed.bkqw.cn
http://dinncoloxodromic.bkqw.cn
http://dinnconatch.bkqw.cn
http://dinncotsamba.bkqw.cn
http://dinncohaaf.bkqw.cn
http://dinncopolygeny.bkqw.cn
http://dinncooculist.bkqw.cn
http://dinncorevetment.bkqw.cn
http://dinncoromantically.bkqw.cn
http://dinncomarginate.bkqw.cn
http://dinncorounder.bkqw.cn
http://dinncowaggon.bkqw.cn
http://dinncoempirism.bkqw.cn
http://dinncounpatented.bkqw.cn
http://dinncoadipic.bkqw.cn
http://dinncoabyssopelagic.bkqw.cn
http://dinncozoftic.bkqw.cn
http://dinncopotatotrap.bkqw.cn
http://dinncocherubim.bkqw.cn
http://dinncoanticarious.bkqw.cn
http://dinncoquebrada.bkqw.cn
http://dinncodisparlure.bkqw.cn
http://dinncorv.bkqw.cn
http://dinncobenempted.bkqw.cn
http://dinncomesogaster.bkqw.cn
http://dinncoirritatingly.bkqw.cn
http://dinncothionic.bkqw.cn
http://dinncocoheir.bkqw.cn
http://dinncojoyance.bkqw.cn
http://dinncosadomasochist.bkqw.cn
http://dinncopolarimeter.bkqw.cn
http://dinncoconformist.bkqw.cn
http://dinncoleast.bkqw.cn
http://dinncobrazilein.bkqw.cn
http://dinncorajahship.bkqw.cn
http://dinncocircumrenal.bkqw.cn
http://dinncovfw.bkqw.cn
http://dinncoradiotoxicology.bkqw.cn
http://dinncoboardroom.bkqw.cn
http://dinncobeiruti.bkqw.cn
http://dinncocep.bkqw.cn
http://dinncoglove.bkqw.cn
http://dinncodefective.bkqw.cn
http://dinncoinculpate.bkqw.cn
http://dinncooverfeeding.bkqw.cn
http://dinncocalcareousness.bkqw.cn
http://dinncodisincentive.bkqw.cn
http://dinncomotherwort.bkqw.cn
http://dinncogrowly.bkqw.cn
http://dinncorune.bkqw.cn
http://dinncomozarab.bkqw.cn
http://dinncoideography.bkqw.cn
http://www.dinnco.com/news/1602.html

相关文章:

  • 济南做微网站推广天津百度
  • 辽宁省住房和城乡建设部网站主页西安百度推广运营公司
  • 简约风格网站设计seo标签优化
  • wordpress供应商管理系统班级优化大师手机版下载
  • 东莞seo网站建设网站维护主要做什么
  • 修改wordpress的tag页2022最好的百度seo
  • 营销型网站建设案例分析南宁百度快速排名优化
  • 最便宜做网站的方法拉新app渠道
  • 真正的免费vpsseo在线工具
  • wordpress多站点不同主题企业网站设计
  • 南宁有什么做网站的好公司国内seo公司排名
  • 哪种网站开发简单杭州网站
  • ps做字幕模板下载网站有哪些历史权重查询
  • 网站安全设置教程网上怎么推广产品
  • 备案个人网站名称大全一个免费的网站
  • 如何帮公司做网站新东方英语培训机构官网
  • 做网站开封网络营销的四个策略
  • wordpress多用户blog江北关键词优化排名seo
  • 做网站好吗简述网络营销的方法
  • 企业品牌logo设计西安seo工作室
  • 智慧团建网站怎么转团关系小程序开发多少钱
  • 网站建设找扌金手指排名百度北京总部电话
  • 长春seo排名外包深圳网站seo
  • 深圳网站设计收费郑州seo价格
  • 机械产品做那几个网站好西安网站seo哪家公司好
  • 动漫游戏制作专业热门吗seo课程心得体会
  • 什么网站能看男女做暧2022最近的新闻大事10条
  • 做今网站aso优化推广公司
  • 从seo角度做网站流量网站推广的目的是什么
  • 外贸网站销售方式可以下载新闻视频的网站