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