001.Linux Introduction + VMWare + installation + common catalog describes commonly used commands + Xshell5 installation + FileZilla install and use + JDK + Tomcat configuration version decompression decompression version configuration

About a .Linux

Development of historical figures: Dennis Ritchie, Ken Thompson

Kernel compilation: the B .C language as the language kernel language, unix.linus invention called unix same people invented the system changed its name to linus linux linux are collectively called, specific versions are called distributions.

The famous releases: red hat, the world's largest manufacturers of linux distributions (surcharge). ubuntu, free version of the interface is better. unicorn .Cent OS, free from red hat branches.

Positioning: The operating system is suitable for server systems, are not suitable for office systems.

linux window relative advantages: stability, security is relatively high, free.

Two .VMWare installation and CentOS 6.5 installation ( snapshot function )

Three .Linux system commonly Contents Introduction

In the company linux is no interface.

System Path

1 / indicates the root directory

2 represents ~ / root

3.  etc storage system configuration directory.

4. home but root for all users by default in the home to create a new user name as the folder name of the folder

Xxx user has full control permissions on the / home / xxx.

5. The user root root separate folder

6. usr all user-installed software are placed into this folder

In usr / local create a tmp, all the compressed packets are uploaded to the tmp

Four .Linux commonly used commands

The effect of different users log on

1. Ordinary users

2. root user

linux everywhere need to write support two way path

1. full path, mark: begin with /

2. Relative path: to look for other resources from the current resource process step by step

Common Commands

1. pwd print working directory, all current folder full path

2.cd into folders

cd .. jump up a folder

cd path into a specified folder

3. mkdir create a new empty folder

4. ls tiled ll detailed list

5. vi and vim are edited file

 If the file does not exist, create a file with the function

 vi editor vim ordinary senior editor (with color)

 Edited into a non-editable, click on the "i" or "insert" Enable edit mode

 Edit Click "esc" exit edit mode, enter

     : Wq to save and exit

     : Q to exit without saving (not applicable to the editor)

     : Q Force Quit!

6. touch creates an empty file.

7.cat view the entire contents of the file

8. head [-n] n rows before view the file file name, the default Pre 10

9. tail [-n] filename File View n] lines, 10 lines after the default.

After the dynamic display 10. tailf n lines document language commonly used in the log file display tomcat.

11. echo 'content' >> filename to add some content to the file.

12. ifconfig print card information.

13. reboot reboot.

14. tar zxvf file name

15. cp [-r] the original file new file path: Copy files

 -r Copy Folder

Different user login

16.ctrl + C interrupt

17. mv original new file: Cut (includes renaming function

18. rm [-rf] File Name: Delete

-r delete a directory

-f Force delete, you do not need to confirm.

19. clear clear screen

Five .Xshell5 installation

linux client tools.

CentOS by default only open 22 ports. Other ports are blocked by the firewall.

Six .FileZilla installation and use

FTP protocol

English name: File Transfer Protocol

Role: the Internet, transfer files between computers need to comply with the agreement.

 fileziila

Client tools based on FTP protocol, you can use filezilla fast file transfer function.

Seven .JDK decompression version configuration

The archive uploaded to the server / usr / local / tmp

Extracting archive: # tar zxvf file name

Copy the file to unzip / usr / local / jdk7: # cp -r filename / usr / local / jdk7

Configuration environment variable, execute the command: # vim / etc / profile

Modify the contents of the file: using a colon segmentation, $ variable name is a reference to, export add or modify variables

#export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL

export JAVA_HOME=/usr/local/jdk7

export PATH=$JAVA_HOME/bin:$PATH

export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

Parse the file (or reboot your system): # source / etc / profile

Verify that the configuration is successful: # java -version

Eight .Tomcat decompression version configuration

The tomcat archive uploaded to the server

Unzip tomcat: # tar zxvf archive name

 After extracting the file folder to / usr / local / tomcat: # cp -r apache-tomcat-7.0.68 / usr / local / tomcat

Configuration environment variable: # vim / etc / profile, add content export TOMCAT_HOME = / usr / local / tomcat and export CATALINA_HOME = / usr / local / tomcat3

Release 8080

5.1

# vim  /etc/sysconfig/iptables

5.2

The line 22 comprises a line copy, modify 22 8080

 

5.2.1 8080: 9000 full release from 8080-9000

5.3

Restart the service: #service iptables restart (restart restart, start to start, stop stop)

Start tomcat, into tomcat / bin folder

1. Direct Start #. / Startup.sh

2. Start print and dynamic startup information # ./startup.sh & tailf /usr/local/tomcat/logs/catalina.out

Nine .MySql decompression version configuration

X. project to deploy Linux Server Step

Published 45 original articles · won praise 7 · views 2422

Guess you like

Origin blog.csdn.net/weixin_44145972/article/details/90545219