Centos initial configuration

Source: Internet
Author: User
Tags ftp connection ftp access
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

  1. Vi/etc/sysconfig/iptables

Add the following code before the REJECT line

  1. -A input-m state -- state NEW-m tcp-p tcp -- dport 21-j ACCEPT

Save and close files and restart firewall

  1. 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

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.