主要写Java后端,偶尔用vue、react等写前端,groovy、nodejs都会一点点,最近在用kotlin。
使用Linux桌面有17年的时间,目前主力机是一台安装了Arch Linux的组装机。
一个自认为比较精简的图床程序
License: Apache License 2.0
怎么生成邀请码
开始报错的部分如下,不知道什么原因。
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Lolibox 0.2.6-SNAPSHOT:
[INFO]
[INFO] Lolibox ............................................ SUCCESS [02:14 min]
[INFO] lolibox-server ..................................... FAILURE [01:35 min]
[INFO] lolibox-reverse-proxy .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:02 min
[INFO] Finished at: 2019-02-08T13:09:21Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project lolibox-server: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /usr/src/app/lolibox-server && /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar /usr/src/app/lolibox-server/target/surefire/surefirebooter4830271271987322718.jar /usr/src/app/lolibox-server/target/surefire/surefire6419766121330413546tmp /usr/src/app/lolibox-server/target/surefire/surefire_05453575075431408237tmp
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :lolibox-server
ERROR: Service 'lolibox' failed to build: The command '/bin/sh -c mvn clean install -U' returned a non-zero code: 1
能不能把生成连接的/images去掉啊,想要真实的目录
YOU DID IT ON PURPOSE?
目前输出的连接太长了,经常导致折行。
运行./lolibox-server/target/lolibox-server-0.2.3-SNAPSHOT.jar后
2016-05-20 17:09:26.571 INFO 1621 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 0 2016-05-20 17:09:26.742 INFO 1621 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 2147483647 2016-05-20 17:09:26.831 INFO 1621 --- [ main] c.n.h.c.m.e.HystrixMetricsPoller : Starting HystrixMetricsPoller 2016-05-20 17:09:26.835 INFO 1621 --- [ main] ration$HystrixMetricsPollerConfiguration : Starting poller 2016-05-20 17:09:26.842 WARN 1621 --- [ main] o.s.c.n.zuul.web.ZuulHandlerMapping : No routes found from ProxyRouteLocator 2016-05-20 17:09:27.240 INFO 1621 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8899 (http) 2016-05-20 17:09:27.352 INFO 1621 --- [ main] io.loli.box.LoliboxApplication : Started LoliboxApplication in 63.442 seconds (JVM running for 64.552)
然后浏览器输入http://IP地址:8899/admin.html
`连接超时
XXX 的服务器响应时间过长。
此站点暂时不可用或者太忙。请稍后再试。
如果您无法载入任何页面,请检查您计算机的网络连接。
如果您的计算机或网络受到防火墙或者代理服务器的保护,请确认 Firefox 已被授权访问网络。`
环境是ubuntu 14.04。oneinstack安装的LNMT
java -version
java
version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)mvn --version
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.8.0_92, vendor: Oracle Corporation
Java home: /usr/java/jdk1.8.0_92/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-36-generic", arch: "amd64", family: "unix"
application.properties文件:
spring.application.name=lolibox
Server port
server.port=8899
Server address
server.address=
Max upload size
multipart.max-file-size=20MB
Advanced management path
management.context-path=/admin/
Your email
email=XXXX
Password
password=XXXX
Another path for CDN
cdnHost=
imgHost=
storage.type can be 'filesystem', 'aliyun'
storage.type=filesystem
Where images saved while storage.type is 'filesystem'
storage.filesystem.imgFolder=/data/wwwroot/default/home/choco/lolibox/
aliyun cloud storage settings
storage.aliyun.url=
storage.aliyun.key=
storage.aliyun.secret=
storage.aliyun.name=
Qiniu cloud storage settings
storage.qiniu.key=
storage.qiniu.secret=
storage.qiniu.name=
Baidu cloud storage settings
storage.baidu.key=
storage.baidu.secret=
storage.baidu.url=
storage.baidu.name=
spring.h2.console.enabled=true
spring.h2.console.path=/admin/h2-console
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:h2:file:~/lolibox/db;FILE_LOCK=FS
spring.datasource.username=sa
spring.datasource.password=sa
spring.jms.pub-sub-domain=true
界面上没发现呢 =v=
在"我的图片"中查看上传图片时会报错.reverse-proxy项目一片空白,除了配置了个zuul
这种方式可以不必占用端口,而且避免tcp控制
目前仅支持 BBCODE 和 HTML, 然而 V2EX 和 Github 等论坛使用 Markdown.
目前你忘记调整 links-result
的高度了,目前仍然适配的三行。
另外你忘记调整 panel-body
的高度了,footer
被遮住了,可喜可贺。 ( ´_ゝ`)
If the application has not been used for a long time, an exception will be reported.
exception: The temporary upload location [/tmp/tomcat.5425935716444258807.8888/work/Tomcat/localhost/ROOT] is not
安装了之后上传图片只能1MB以下,application.properties 的20MB没改?
是否有初始邀请码呢?我开启后第一次注册管理员用户需要邀请码。或者说难道是先注册再开启邀请码功能吗?
安装的时候,执行mvn clean package遇到一个错误
[INFO] Scanning for projects...
Downloading: https://repo.spring.io/snapshot/org/springframework/cloud/spring-cloud-starter-parent/Brixton.M3/spring-cloud-starter-parent-Brixton.M3.pom
Downloading: https://repo.spring.io/milestone/org/springframework/cloud/spring-cloud-starter-parent/Brixton.M3/spring-cloud-starter-parent-Brixton.M3.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.cloud:spring-cloud-starter-parent:pom:Brixton.M3 from/to spring-snapshots (https://repo.spring.io/snapshot): java.security.ProviderException: java.security.KeyException @ line 55, column 25
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-zuul:jar is missing. @ line 47, column 21
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project io.loli:lolibox:0.2.3-SNAPSHOT (/root/lolibox/pom.xml) has 2 errors
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.cloud:spring-cloud-starter-parent:pom:Brixton.M3 from/to spring-snapshots (https://repo.spring.io/snapshot): java.security.ProviderException: java.security.KeyException @ line 55, column 25 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-zuul:jar is missing. @ line 47, column 21
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
实现云托管图片
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.