Linux using notes 4

Source: Internet
Author: User

Run the software that is already installed:

CD to the installation directory of this software

Enter command/:./software name

You can do it.

Run GeoServer

1, the first need to add java_home environment variables:

If the server is not set Java_home, you can manually set the edit startup.sh

In the first line, note that the single quotation mark here is the upper-left corner of the keyboard, meaning to execute the command, here the PWD to get the current directory

Export java_home= ' pwd '/. /.. /jre


2. View port 8080:

View Port occupancy

Netstat-tln Netstat-tln | grep 8080

View which process the port is occupying

Lsof-i: 8080
Remove port occupancy

Kill-9 PID

3, CD to unzip the directory, there are several extracted files

Bin GPL.txt Logs Release_notes.txt Start.jar
Data_dir Lib Nohup.out resources VERSION.txt
etc LICENSE.txt README.txt RUNNING.txt WebApps

1.bin Catalog

In this directory are some script files, you can use Startup.bat to start the built-in jetty server under Windows, but usually we write our own script files to start the GeoServer

Run geoserver input command: Java-jar Start.jar

We can start GeoServer.

3.data_dir Directory

The directory is a layer, workspace, Geowebcache, etc, very important.

4, we need to configure some WEB.XM data in the time needed

CD to/webaaps/geoserver/web-inf find. Web. XML, which is actually a common Java program

5.etc Catalogue

You can modify the contents of the Jetty.xml file under this path, the role of modifying the port, due to worry about 8080 port may be occupied by other servers, I changed to 8090:

6. WebApps Catalogue

The following path will have Geoserver/web-inf/lib, and Web. XML, the configuration cache path for Web. XML We've already talked about it,

But if you want GeoServer to support getting vector map information from MySQL, we can drop two files into that Lib directory:

Placing the above two. jar files in the Lib directory will support the addition of data sources from MySQL.

6.start.jar file

This file has been described earlier, used to start jetty and deploy GeoServer.





Linux using notes 4

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.