- Installing and configuring the JDK
- Download the Linux version of the JDK wget http://download.oracle.com/otn-pub/java/jdk/8u152-b16/ aa0333dd3019491ca4f6ddbe78cdb6d0/jdk-8u152-linux-i586.tar.gz
- Installing, decompressing  TAR-ZXVF Jdk-7u15-linux-x64.tar.gz-c/usr/local/
- Modify file name mv jdk-7u15-linux-x64 jdk1.7
- javac command can only be jdk1.7/bin/ Javac
-
Can use the Javac command under any path, configure environment Variables
# Vi/etc/profile
Add the following code to the last line:
Export java_home=/usr/local/ jdk1.7
Export path= $JAVA _home/bin: $PATH
Export classpath= $JAVA _home/lib:.
#查看环境变量
Echo $PATH:
/usr /local/jdk1.7/bin:/usr/local/tomcat7/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/ Sbin:/usr/bin:/root/bin
-
To make the configuration take effect immediately:
Source/etc/profile
-
Test:
Java/javac
-Install and configure Tomcat
1. Download
wget http://mirrors.shuosc.org/apache/tomcat/tomcat-7/v7.0.82/bin/apache-tomcat-7.0.82.tar.gz
2. Installation, decompression process:
#tar-ZXVF apache-tomcat-7.0.57.tar.gz-c/user/local
3. Renaming:
#mv apache-tomcat-7.0.57 TOMCAT7
4. In the Tomcat configuration environment variable:
Vi/etc/profile
Export TOMCAT_HOME=/USR/LOCAL/TOMCAT7
Export path= $TOMCAT _home/bin: $PATH
5. By default, the firewall is blocked by 8080 ports, open 8080 ports, window can also access
#编辑防火墙配置文件
# Vi/etc/sysconfig/iptables
-A input-p tcp-m tcp--dport 8080-j ACCEPT
# Save the firewall configuration
Service Iptables Save
Restarting the firewall
#/etc/init.d/iptables restart
6. Set up boot from boot
#echo "Source/etc/profile" >>/etc/rc.d/rc.local
#echo "/usr/local/tomcat7/bin/startup.sh" >>/etc/rc.d/rc.local
-Install and configure MySQL
1. Unzip:
TAR-ZXVF mysql-5.6.37-linux-glibc2.12-x86_64.tar.gz-c/user/local
2. #mv mysql-5.6.37-linux-glibc2.12-x86_64 MySQL
3. Create a user group
#groupadd MySQL
4. Create a user and join the MySQL group
#useradd-G MySQL MySQL
5. #cd/usr/local/mysql
Modify users, user groups
#chown-R mysql:mysql./
6. Manually create a database name called: MySQL
#./scripts/mysql_install_db--user=mysql--datadir=/usr/local/mysql/data/mysql
7. Add MySQL service to init.d directory for ease of use
#cp Support-files/mysql.server/etc/init.d/mysqld
and Modify Permissions
#chmod 755/etc/init.d/mysqld
8. Copy the MySQL configuration file into/etc directory
#cp support-files/my-default.cnf/etc/my.cnf
9. Modify the Mysqld configuration file
#vi/etc/init.d/mysqld
basedir=/usr/local/mysql/
Datadir=/usr/local/mysql/data/mysql
MySQL command for a set of services
#/etc/init.d/mysqld start
#/etc/init.d/mysqld stop
#/etc/init.d/mysqld status
10.mysql Initial is no password
./bin/mysqladmin-u root password ' password '
Note./bin:cd/usr/local/mysql
11. Modify MySQL's Chinese garbled problem
Check out the default encoding format for MySQL
#SHOW VARIABLES like ' character% ';
Vi/usr/local/mysql/my.cnf
Join
[Client]
#port = 3306
#socket =/var/lib/mysql/mysql.sock
Default-character-set=utf8
2. Add Character-set-server=utf8 to the [mysqld] field as follows:
[Mysqld]
#port = 3306
#socket =/var/lib/mysql/mysql.sock
Character-set-server=utf8
3. Add Default-character-set=utf8 to the [MySQL] field as follows:
[MySQL]
#no-auto-rehash
Default-character-set=utf8
Delete the original database, re-create, at this time garbled solution
12. Boot from MYSQLD service
Chkconfig will start from 2345 of these four levels
#chkconfig mysqld 2345 on/off
#chkconfig--add mysqld Add service
#chkconfig--list display a list of services
13.window connection to Linux MySQL
#mysql >grant All privileges on * * to ' root ' @ '% ' identified by ' root ' with GRANT OPTION;
14.linux Firewall Open 3306 port
#vi/etc/sysconfig/iptables
#-a input-p tcp-m TCP--dport 3306-j ACCEPT
Save Firewall settings,
#service iptables Save
--------------------------------------------------------------
Installation and use of LINUX-VSFTPD
1. See if the VSFTPD is installed in the system
#rpm-qa | grep vsfptd
2. Online Installation
#yum-y Search vsftpd
#yum-y Install vsftpd.x86_64
Where Yum installs the software:
#rpm-QL vsftpd
/etc
/usr
/var
3.VSFTPD of services
#/etc/init.d/vsftpd Start/stop/restart/status
4. Authorization
/etc/init.d/iptables stop
Vi/etc/sysconfig/seliunx
Selinux=disabled
Chmod-r 777/var/ftp/pub
Reboot Linux
Init 6/reboot
At this time, anonymous users can log in using the common configuration of anonymous users
-anonymous_enable=yes: Whether to allow Anonymous Logon
-anon_upload_enable=yes
-anon_mkdir_write_enable=yes
-anon_other_write_enable=yes
5. Configuration does not allow anonymous users to log on
#vi/etc/vsftpd/vsftpd.conf
Anonymous_enable=no
6. Create a user
#useradd User Name
#passwd User Name
-Create a folder for each user created at/home under the system
-/home/User name/folder to be shared by custom users
7. Set the boot VSFTPD service
#chkconfig--add vsftpd: Manually add start-up MySQL
#chkconfig--level 2345 vsftpd on
#chkconfig--list: View boot-up services
Linux installation software