简体   繁体   English

卸载GlassFish应用程序服务器

[英]Uninstall GlassFish Application Server

How do you uninstall Glassfish Application Server? 如何卸载Glassfish应用服务器?

I made a mistake in my installation and I want to change the directory of my Glassfish installation. 我在安装中犯了一个错误,我想更改我的Glassfish安装目录。

I just follow below sequence during installation. 在安装过程中,我只按照以下顺序进行操作。

  1. Download the Glassfish V2 jar 下载Glassfish V2 jar
  2. Run below line java -Xmx256m -jar glassfish-installer-v2.1.1-b31g-windows.jar 在java -Xmx256m -jar glassfish-installer-v2.1.1-b31g-windows.jar行下运行
  3. Set the GLASSFISH_HOME variable 设置GLASSFISH_HOME变量

It says from the document that I saw from the net that there is an uninstall.exe option but I can seem to find one. 从我从网上看到的文档中可以看出,有一个uninstall.exe选项,但似乎可以找到一个。

There's a uninstall.sh shell script in the glashfish-folder. glashfish文件夹中有一个uninstall.sh shell脚本。 Execute this with sudo, otherwise the files can not be deleted! 使用sudo执行此操作,否则无法删除文件!

Just delete the contents of the directory to which glassfish was installed. 只需删除安装glassfish的目录的内容即可。 You might also check for a file named .glassfish in your home directory, or something similar, and delete that as well. 您可能还会在主目录中检查一个名为.glassfish的文件或类似文件,并将其删除。

I've worked with glassfish quite a bit and have never had problems removing it this way, though I can't say whether it is the 'official' way to do it. 我已经与玻璃鱼合作了很长时间,并且从来没有遇到过用这种方式删除它的问题,尽管我不能说这是否是“官方”方式。

Its a executable jar file and there are no register entries. 它是一个可执行的jar文件,没有寄存器条目。 So there is no need for an uninstall. 因此,无需卸载。 Like the previous user had mentioned you just need to worry about any env variables pointing to obsolete glassfish location. 就像之前的用户提到的那样,您只需要担心任何指向过时的glassfish位置的env变量。

(Note: If you want to relocate just copy and paste to new folder). (注意:如果要重定位,只需复制并粘贴到新文件夹中)。

The GlassFish Enterprise Server v2.1.1 Installation Guide includes a section on uninstalling. 《 GlassFish Enterprise Server v2.1.1安装指南》包含有关卸载的部分。 To uninstall a GlassFish that was installed using the JAR-based installer: 要卸载使用基于JAR的安装程序安装的GlassFish:

Windows: go the the Explorer window, choose the glassfish directory and delete all its contents. Windows:转到“资源管理器”窗口,选择glassfish目录并删除其所有内容。

Solaris/UNIX: run the following command: rm -r glassfish. Solaris / UNIX:运行以下命令:rm -r glassfish。

http://docs.oracle.com/cd/E19879-01/821-0187/abnbk/index.html http://docs.oracle.com/cd/E19879-01/821-0187/abnbk/index.html

These didn't work for me running java 1.6.0_24 in Windows 7: 这些对我在Windows 7中运行Java 1.6.0_24无效:

  • I tried modifying the asenv.bat file that glassfish uses to find the jre to point to my jre. 我尝试修改glassfish用于查找指向我的jre的jre的asenv.bat文件。

  • I tried manually putting it in as in C:\\glassfish3\\uninstall.exe -j . 我尝试手动将其放入C:\\ glassfish3 \\ uninstall.exe -j中。 This was per the official Oracle documentation. 这是根据Oracle官方文档得出的。

The only thing that worked was to use the original path and move the bin and lib folders from my java installation to the directory that the error dialog specified. 唯一有效的方法是使用原始路径并将bin和lib文件夹从我的Java安装位置移动到错误对话框指定的目录。 Then the Glassfish uninstall started up and completed with no problems. 然后,Glassfish卸载开始并且顺利完成。

doc_180, just cut and poaste won't help becuase many files insite the bin directory are generated at installation time and they keep the directory path. doc_180,仅剪切和粘贴操作无济于事,因为在安装时会在本地生成bin目录的许多文件,并且它们保留了目录路径。 And you will not be able to start the server. 并且您将无法启动服务器。 So once directory has been moved to new location search for old directory entries and update them or delete the glassfish folder and start from scracth (later recommended). 因此,一旦目录移至新位置,请搜索旧目录条目并更新它们,或者删除glassfish文件夹并从scracth开始(以后建议)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 分发glassfish服务器应用程序 - Distributing a glassfish server application 将GlassFish用于套接字服务器应用程序 - Using GlassFish for a socket server application glassfish应用程序服务器中的Web服务器是什么? - what is the web server in glassfish application server? 在glassfish服务器上部署完成的jsf应用程序 - Deploy finished jsf application on glassfish server 在GlassFish服务器上创建和运行应用程序客户端 - Creating and Running an Application Client on the GlassFish Server 是否可以使用 Glassfish 应用程序服务器运行 gRPC? - Is it possible to run gRPC with Glassfish application server? 在Glassfish应用服务器中导入SSL证书 - Importing SSL certificates in Glassfish Application Server 将Java服务器应用程序集成到应用程序服务器中,如TomCat,GlassFish等 - Integration of Java server application into Application Server like TomCat, GlassFish, etc Glassfish服务器:如何从glassfish应用程序中获取应用程序部署的名称? - Glassfish server: How to get name of application deployment from inside glassfish application? Glassfish4服务器和jersey2:glassfish为什么要向应用程序提供自己的jersey2 - Glassfish4 server & jersey2: why does glassfish provide its own jersey2 to application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM