I am using the xftp to connect to the server and upload the. zin;tar.zip
The required preparatory knowledge
Step1: Understand the working directory of the Linux operating system
1. root directory/
2. File structure under the root directory
/(Root file system) the root file system is the top-level directory of the file system. It must contain all the files needed to boot the Linux system before mounting other file systems. It must contain all executables and libraries that need to be used to start the remaining file systems. After the file system is started, all other file systems are attached to standard, predefined mount points as subdirectories of the root file system.
The/bin/bin directory contains the user's executable file.
/boot contains the static bootstrapper and kernel executables and configuration files required to start the Linux system.
/Dev The directory contains the device files for each hardware device connected to the system. These files are not device-driven, but they represent the devices that each computer on the computer can access.
/ etc contains the local system configuration file for the host computer.
The /home directory stores user files, and each user has a subdirectory in the/home directory (as its main directory).
/lib contains the shared library files required to start the system.
/media a place where external removable devices are mounted, such as a USB drive that the host may be connected to.
/mnt A temporary mount point for an ordinary file system (such as non-removable media) that can be used when an administrator repairs a file system or works on it.
/opt optional files, such as vendor-supplied applications, should be installed here.
/root This is not the root (/) file system. It is the root user's home directory.
/sbin system binary files. These are executable files for system administration.
/ tmp temp directory. Used by the operating system and many programs to store temporary files. The user may also temporarily store files here. Note that files stored here may be deleted at any time without notice.
/usr This directory contains shareable, read-only files, including executable binaries and libraries, man files, and other types of documents.
the/var variable data file is stored here. These files include log files, files for MySQL and other databases, data files for WEB servers, messages, and more.
Step2: File (clip) operation
Adding and removing difference to decompress
LS: List directory CD: Switch directory pwd: Show current directory mkdir: Create a new directory rmdir: Delete an empty directory CP: Copy file or directory RM: Remove file or directory tar: Unzip
Step3: File Permissions:
1. Three kinds of permissions
chmod: Changing Files 9 Properties There are two ways to set up Linux files, one is numbers and one is symbols. There are nine basic permissions for Linux files, namely owner/group/others three identities, each with their own read/write/.Execute permissions. First review the data just mentioned above: The file's permission character is: "-rwxrwxrwx ", these nine permissions are three three groups! Where we can use numbers to represent individual permissions, the scores of each permission are as follows: R:4W:2x:1each type of identity (owner/group/others) The respective three permission (R/W/X) scores are required to accumulate, for example when the permission is: [-RWXRWX---] The score is: Owner= RWX =4+2+1=7Group= RWX =4+2+1=7others= --- =0+0+0=0
Step4: File Operation:
Vim is a text editor developed from VI.
1. Download your own Linux corresponding bits (23,64) version (16.4,17.4) of the various software compression files
2 and through the file Transfer Protocol xftp to/usr/own name of the file
3 Installation Sequence
JDK-TOMCAT-MYSQL-JDBC (JDK must be first installed, rear position adjustable)
JDK Installation:
A:jdk extract to the file (notice the permission OH)
B: Configure the environment variable (configured in/etc/profile) path,java_home. After the configuration is complete, remember that the operation will work.
C:java-version View JDK version
Tomcat:
A:tomcat Decompression
B:tomcat working directory with Windows (Bin,lib,config,webapp, etc.), you can see the modified port number and so on
C: Configure security groups, open port numbers
D: Pay attention to firewall problems, may not be able to access, Baidu solved
C:IP: port to see if it's successful
Mysql:
After decompression, there will be a lot of files
Just install the steps below.
sudo apt-get updatesudo apt-get upgradeapt-get Install libaio1 (apt-get install mysql-server mysql-client Automatic installation will mount 5.7) CD/ Usr/local/srcsudo wget mysql-server_5.7.15-1ubuntu16.04_amd64.deb-bundle.tarhttp://cdn.mysql.com//downloads/ Mysql-5.7/mysql-server_5.7.15-1ubuntu16.04_amd64.deb-bundle.tarsudo TAR-XVF mysql-server_5.7.15-1ubuntu16.04_ Amd64.deb-bundle.tarsudo dpkg-i Mysql-common_5.7.15-1ubuntu16.04_amd64.debsudo dpkg-preconfigure Mysql-community-server_5.7.15-1ubuntu16.04_amd64.deb This step will pop up an interface that prompts you to enter the root password sudo dpkg-i mysql-client_ 5.7.15-1ubuntu16.04_amd64.deb (this must be installed first, otherwise the following installation will be error-dependent missing) sudo dpkg-i mysql-community-client_5.7.15-1ubuntu16.04_ amd64.deb< here to pay attention: Install a LIBMECAB2 this is the installation of Mysql-community-server dependent >sudo apt-get install Libmecab2sudo dpkg-i Mysql-community-server_5.7.15-1ubuntu16.04_amd64.debsudo dpkg-i LIBMYSQLCLIENT20_5.7.15-1UBUNTU16.04_AMD64.DEBCD /usr/local/sudo ln-s/var/lib/mysql/usr/local/mysqlsudo mkdir/usr/local/mysql/datasudo chown-r MySQL. /usr/local/mysql/dATA login sudo/usr/bin/mysql-u root-p [optional database name] remote connection
Jdbc:
1. Download the JDBC driver www.mysql.com/downloads/for connectors, then connector/j on the left side of the webpage Click on the tar.gz and zip file that will appear for download download. tar.gz file 2. Expand the file you just downloaded (mysql-connector-java-5.0.6.tar.gz) tar zxvf Mysql-connector-java-5.0.6.tar.gz3. Configuring the connection file will just expand the mysql-connector-java-5.0.6 Copy the Mysql-connector-java-5.0.6-bin.jar file to the above installed JDK and the Lib folder under Tomcat in the CD mysql-connector-java-5.0.6 CP. Mysql-connector-java-5.0.6-bin.jar ~/jdk/lib
Construction of Jdk-tomcata-mysql under Liunx