RedHat6.2 Configure ftp, jdk, tomcat, mysql, and redhat6.2jdk
Service vsftpd start enabling vsftpd
Service vsftpd status view vsftpd status
Chkconfig -- list vsftpd to view the running status at different system levels
Chkconfig -- level 35 vsftpd on is automatically enabled when vsftpdz 3 5 is set
Rpm-e -- nodeps filename force uninstall
Rpm-ivh filename Installation
/* Install vsftpd
: Http://download.csdn.net/detail/u012092620/8631201
1. Check whether vsftpd is installed.
Rpm-qa | grep vsftpd
2. Installation
Rpm-ivh installation package name
3. Open Port 21 and Port 20
Iptables-a input-p tcp -- dport 21-j ACCEPT
Iptables-a input-p tcp -- dport 20-j ACCEPT
4. the root user is not allowed to upload files by default.
Cd/etc/vsftpd
Vi ftpusers comment out the root user
Vi ftpusers comment out the root user
5. Test in windows
The following error occurs during ftp 192.168.126.129:
500: OOPS: can not changedirectory:/root
Selinux solution:
Sestatus-B | grep ftp
Setsebool-P ftp_home_dir 1
Setsebool-P allow_ftpd_full_access on
Sestatus-B | grep ftp
Or modify
SELINUX = "" is disabled, and then restart
6. Restart
Service vsftpd restart
Note:
// Automatically enable upon startup
Chkconfig vsftpd on
// Firewall is permanently disabled
Chkconfig iptables off
//
*/
/* Install jdk
1. Check whether jdk has been installed.
Rpm-qa | grep jdk
If you have installed and uninstalled
Rpm-e filename
2. Upload the jdk installation package through ftp
Jdk-8u45-linux-x64.rpm
3. Enter the upload location
Rpm-ivh jdk-8u45-linux-x64.rpm for Installation
If a Permission denied error occurs, you do not have the Permission to run the task.
Chmod 755 jdk-8u45-linux-x64.rpm
4. Configure Environment Variables
There are three ways to configure environment variables (modify the/etc/profile file, modify the. bashrc file in the user directory, and directly modify it in shell)
Here I will only talk about the changes I used to the/etc/profile file.
Vi/etc/profile
Add at the bottom
JAVA_HOME =/usr/java/jdk1. 5. 0_06
PATH = $ JAVA_HOME/bin: $ PATH
CLASSPATH =.: $ JAVA_HOME/lib/tools. jar: $ JAVA_HOME/lib/dt. jar
Export JAVA_HOME PATH CLASSPATH
5. Test Environment
Vi Hello. java
Class Hello {
Public static void main (String [] args ){
System. out. println ("hello word ");
}
}
Javac Hello. java
Java Hello
*/
/* Install tomcat
1. Check whether tomcat has been installed.
Rpm-qa | grep tomcat
If you have installed and uninstalled
Rpm-e filename
2. Upload tomcat
Apache-tomcat-6.0.43.tar.gz
3、decompress apache-tomcat-6.0.43.tar.gz
Gzip-d apache-tomcat-6.0.43.tar.gz
Tar-xvf apache-tomcat-6.0.43.tar
4. Move and rename
Mv apache-tomcat/tomcat
5. Run startup. sh in/tomcat/bin.
./Start. sh
6. verify whether the function is enabled.
Wget http: // localhost: 8080
*/
/* Install the mysql service and client
1. Upload the installation package MySQL-client-5.5.39-2.linux2.6.x86_64.rpm
MySQL-server-5.5.39-2.linux2.6.x86_64.rpm
2. Check whether the old mysql version has been installed.
Rpm-qa | grep mysql *
If you delete an existing
Rpm-e-nodeps filename
3. Install the service
Rpm-ivh MySQL-server-5.5.39-2.linux2.6.x86_64.rpm
4. Install the client
Rpm-ivh MySQL-client-5.5.39-2.linux2.6.x86_64.rpm
5. Start mysql
Service mysql start
*/