Installation rz command
yum -y install lrzsz
upload files
rz filename
Download file
sz filename
** You can use sftp tool: alt + p to bring up the rear, with the put command to upload
upload (cd if you do not specify a directory, then uploaded to the current user's home directory):
sftp> cd / Home /
sftp> put D: \ jdk-7u45-linux -x64.tar.gz
Download (downloaded to the local LCD specified target path)
SFTP> D LCD: /
SFTP> GET /home/jdk-7u45-linux-x64.tar.gz
1. JDK installation
steps:
1) view the current Linux system is already installed java
* RPM -qa | grep java
java-1.6.0-openjdk-1.6.0.0-1.50.1.11.5.el6_3.i686
java-1.7.0-openjdk- 1.7.0.9-2.3.4.1.el6_3.i686
2) uninstall two openJDK
* -e RPM - nodeps want to uninstall the software
3) to upload jdk Linux
4) to extract the jdk under / usr / local
* jDK - tar -zxvf -C-Linux-i586.tar.gz 7u71 / usr / local / Java
. 5) arranged jdk environment variables, open / etc / profile configuration file
* vi / etc / profile
will be copied into the following configuration
#set Java environment
* the JAVA_HOME = / usr / local / the Java / jdk1.7.0_71
* = the CLASSPATH:. $ JAVA_HOME / lib.tools.jar
* the PATH = $ JAVA_HOME / bin: $ the PATH
* Export JAVA_HOME the CLASSPATH the PATH
6) to reload the / etc / profile configuration file
Source * / etc / Profile
. 7) is available to test the java command
* java -version
2. Mysql installation (slightly different installation directly installed by default in ur / local / under at root)
steps:
1) View CentOS comes with MySQL
* RPM -qa | grep MySQL
MySQL-libs-5.1.66-2.el6_3. i686
2) the built-in uninstall mysql
* rpm -e --nodeps want to uninstall the software
3) to upload Mysql Linux
4) unzip to Mysql mysql directory under / usr / local / (mysql directory needs to be created manually) within
* cd / usr / local
* mkdir mysql
* -zxvf the MySQL-5.6.22-1.el6.i686.rpm the tar-bundle.tar -C / usr / local / mysql
. 5) is mounted mysql in / usr / local / mysql
* install server-side: RPM -ivh MySQL-server-5.6.22-1.el6.i686.rpm
* install the client: RPM -ivh MySQL-client-5.6.22-1.el6.i686.rpm
6) start MySQL
* Service mysql start
7) will be added to the system mysql service and set boot
* added to the system service: chkconfig --add mysql
* Automatic startup: chkconfig mysql ON
8) Log mysql
* After a good mysql installation will generate a random password temporary storage location /root/.mysql_secret
* msyql -u root -p
9) modify the mysql password
* the SET password = password ( '34211');
10) remote login mysql open the
default mysql For safety reasons, do not support remote login mysql, so we need to set permission to open telnet the mysql
enter the following command after logging in mysql:
* Grant All privileges ON * * to 'root' @ '%' IDENTIFIED by '34211';.
* flush privileges;
11) liberalization of the external access Linux's port 3306
* / sbin / iptables the INPUT -p tcp the -I --dport 3306 -j ACCEPT
* / etc / rc.d / init.d / iptables --- the save the modified stored permanently in the firewall
3. Tomcat installation
steps:
1) to upload the linux Tomcat
created directory Tomact:
2) to extract the Tomcat under / usr / local / tomact (tomact need to manually create directory)
* mkdir -p / usr / local / Tomact
* the tar -zxvf Apache - An -C-7.0.57.tar.gz Tomcat / usr / local / Tomact
3) liberalization of the external access to the Linux port 8080
* / sbin / iptables the INPUT -p tcp the -I --dport 8080 -j ACCEPT
* / etc / rc .d / init.d / iptables the Save
4) initiate a shutdown Tomcat
./ startup.sh: * start at entering the tomcat bin
closed bin under the * to enter the tomcat: ./ shutdown.sh