Giter Site home page Giter Site logo

部署文档 about nginx-gui HOT 3 CLOSED

onlyguo avatar onlyguo commented on September 3, 2024
部署文档

from nginx-gui.

Comments (3)

onlyGuo avatar onlyGuo commented on September 3, 2024
  1. 服务器安装Java环境, 安装Maven
  2. 项目down下来后, 修改conf.properties, 配置用户名密码, 配置Nginx路径以及NginxConf文件路径.
  3. 在项目目录执行 mvn clean package 会将代码编译成Jar包到target目录.
  4. 执行java -jar Jar包路径.jar
  5. 访问8889端口.

from nginx-gui.

xiongbobi avatar xiongbobi commented on September 3, 2024

@onlyGuo
使用mvn clean package编译时报错

我jdk用的1.8,maven用的3.6,有朋友遇到过这样的问题么,求解答

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.11 sec <<< FAI
LURE! - in com.xhd.aiyi.wiki.wiki.WikiApplicationTests
initializationError(com.xhd.aiyi.wiki.wiki.WikiApplicationTests) Time elapsed:
0.003 sec <<< ERROR!
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you
need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test

    at org.springframework.util.Assert.state(Assert.java:70)
    at org.springframework.boot.test.context.SpringBootTestContextBootstrapp

er.getOrFindConfigurationClasses(SpringBootTestContextBootstrapper.java:202)
at org.springframework.boot.test.context.SpringBootTestContextBootstrapp
er.processMergedContextConfiguration(SpringBootTestContextBootstrapper.java:137)

    at org.springframework.test.context.support.AbstractTestContextBootstrap

per.buildMergedContextConfiguration(AbstractTestContextBootstrapper.java:409)
at org.springframework.test.context.support.AbstractTestContextBootstrap
per.buildDefaultMergedContextConfiguration(AbstractTestContextBootstrapper.java:
323)
at org.springframework.test.context.support.AbstractTestContextBootstrap
per.buildMergedContextConfiguration(AbstractTestContextBootstrapper.java:277)
at org.springframework.test.context.support.AbstractTestContextBootstrap
per.buildTestContext(AbstractTestContextBootstrapper.java:112)
at org.springframework.boot.test.context.SpringBootTestContextBootstrapp
er.buildTestContext(SpringBootTestContextBootstrapper.java:82)
at org.springframework.test.context.TestContextManager.(TestContex
tManager.java:120)
at org.springframework.test.context.TestContextManager.(TestContex
tManager.java:105)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.creat
eTestContextManager(SpringJUnit4ClassRunner.java:152)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.<init

(SpringJUnit4ClassRunner.java:143)
at org.springframework.test.context.junit4.SpringRunner.(SpringRun
ner.java:49)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct

orAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBui
lder.java:104)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(Annotated
Builder.java:86)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilde
r.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForC
lass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilde
r.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:
33)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provide
r.java:283)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUni
t4Provider.java:173)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4
Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider
.java:128)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameCla
ssLoader(ForkedBooter.java:203)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork
edBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:
103)

Results :

Tests in error:
WikiApplicationTests.initializationError ? IllegalState Unable to find a @SPRI
...

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.696 s
[INFO] Finished at: 2019-02-15T11:53:05+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
18.1:test (default-test) on project nginx: There are test failures.
[ERROR]
[ERROR] Please refer to D:\nginx-gui-master\target\surefire-reports for the indi
vidual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption

from nginx-gui.

onlyGuo avatar onlyGuo commented on September 3, 2024

第一个版本的发行包已经编译, 在GitHub中下载你对应的系统的发行包.
包内集成了Java运行环境, 无需手动配置JDK.

  1. 下载好后, 解压, 修改conf/conf. properties文件, 将你的Nginx安装地址和Nginx配置文件地址设置进去.
  2. 在配置文件中, account.admin = admin 表示 创建一个admin的账户, 他的密码是admin, 若想添加一个用户为abc, 密码为123的用于, 在conf/conf. properties中追加一行 account.abc = 123 即可.
  3. 设置好配置文件后, 运行startup.sh或startup.bat即可启动.
  4. 访问端口8889

如有问题, 请重开issues

from nginx-gui.

Related Issues (20)

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.