Current location - Quotes Website - Collection of slogans - Commands for linux to decompress war packages
Commands for linux to decompress war packages
How does linux compress war files with commands?

For example, package files in the project_a folder into project.war

1. Packaging

jar-xvfproject.war/project_a

Description:

-c create a war pack

-v displays process information.

-f specifies the JAR file name, which is usually required.

-m does not generate MANIFEST〕 files for all projects. This parameter ignores the -M parameter.

-0 This is an Arabic numeral, which means only packaging without compression.

decompression

jar-xvfproject.war

Note: Extract to the current directory.

How to decompress the encrypted war?

RAR, right? Do you have winRAR on your computer? If the RAR file icon on your computer looks like a compressed file, it is available. When you press the file, advanced options will pop up in the settings box to set the password.

Decompressing the war package prompts filenotfound?

The registration file is missing. It's probably a problem with your installation file itself, so it's better to change to a new installation version.

Teach you how to build a linux server step by step.

Deployment, configuration and construction steps of Linux server:

1. Ready:

1. 1 . JDK 1.8:JDK-8u 1 1-Linux-x64 . tar . gz .

Tomcat:Apache-Tomcat-8 . 0 . 39-windows-x64 . zip .

1.2. Install a 1.8 jdk first, and pay attention to linuxforjdk, otherwise it won't work.

Then create a new java folder under /usr/ in the root directory (the root directory here should be accessed by cd first and then /usr/ instead of home/xxx, and you can view the current path through pwd)/usr/ to place the extracted jdk file). Here, because the suffix is tar.gz, you can directly decompress it with tar-xf command.

2. Configuration:

2. 1. Configure the environment variables of JDK: Go to the /etc/ folder to find the configuration file, and add variable parameters at the end of the file through the file editing command viprofile:

JAVA _ HOME =/usr/JAVA/JDK 1 . 8 . 0 _ 1 1

PATH=$JAVA_HOME/bin:$PATH

Classpath =. :$ JAVA _ HOME/JRE/lib/rt . jar:$ JAVA _ HOME/lib/dt . jar:$ JAVA _ HOME/lib/tools . jar

2.2. Unzip the downloaded tomcat to a custom folder, mine is home/pengyy/tomcat/, modify the port number in the configuration file, and edit server.xml with vi command. Later, when I started, the port of 8005 conflicted. I changed it directly to 8088 and downloaded it.

Then install

Unzip and unzip to the maps folder in the root directory of WAR3.

Then create a new folder in the Maps folder.

Put your map in the new folder.

Then enter Warcraft and you will have it.