Modify language environment[[Email protected] ~] # Sudo vim/etc/sysconfig/i18n change zh_CH to "en_US.UTF-8"
Build yum local sourceReference: how to install software in centos
Vsftpd installation configurationRefer to CentOS for VSFTP server configuration
Yum install vsftpd
Set vsftpd to startLast login: Tue Aug 12 08:21:26 2014 from l-001812.lan
[[Email protected] ~] # Chkconfig -- list | grep vsftpd
Vsftpd 0: off 1: off 2: off 3: off 4: off 5: off 6: off
[[Email protected] ~] # Chkconfig vsftpd on
[[Email protected] ~] # Chkconfig -- list | grep vsftpd
Vsftpd 0: off 1: off 2: on 3: on 4: on 5: on 6: off
[[Email protected] ~] # Configuring a firewall
Open the/etc/sysconfig/iptables file
- Vi/etc/sysconfig/iptables
Add the following code before the REJECT line
- -A input-m state -- state NEW-m tcp-p tcp -- dport 21-j ACCEPT
Save and close files and restart firewall
- Service iptables restart
Create an ftp connection. The connection mode is active and the character set is utf8 (optional) modify ftp access permission use the command getsebool-a | grep ftp to view [[email protected] vsftpd] # getsebool-a | grep ftp
Allow_ftpd_anon_write --> off
Allow_ftpd_full_access --> off
Allow_ftpd_use_cifs --> off
Allow_ftpd_use_nfs --> off
Ftp_home_dir --> off
Ftpd_connect_db --> off
Ftpd_use_fusefs --> off
Ftpd_use_passive_mode --> off
Httpd_enable_ftp_server --> off
Tftp_anon_write --> off
Tftp_use_cifs --> off
Tftp_use_nfs --> off to check whether the above Red is on. If not, use setsebool.
Allow_ftpd_full_accessOn setsebool
Ftp_home_dirOn [[email protected] vsftpd] # getsebool-a | grep ftp
Allow_ftpd_anon_write --> off
Allow_ftpd_full_access --> on
Allow_ftpd_use_cifs --> off
Allow_ftpd_use_nfs --> off
Ftp_home_dir --> on
Ftpd_connect_db --> off
Ftpd_use_fusefs --> off
Ftpd_use_passive_mode --> off
Httpd_enable_ftp_server --> off
Tftp_anon_write --> off
Tftp_use_cifs --> off
Tftp_use_nfs --> off CentOS configure JAVA environment variables
Vi/etc/profile // add content at the end of the file # set Java environment export JAVA_HOME =/usr/local/javaexport CLASSPATH =. /: $ JAVA_HOME/lib: $ JAVA_HOME/jre/libexport PATH = $ PATH: $ JAVA_HOME/bin
Centos initial configuration