In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you the analysis of the problems related to the installation of ftp server in redhat 6.5. the article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Redhat 6.5 A series of problems with installing ftp server
Recently, I wanted to set up a ftp server in the linux system to receive packages transmitted by partners, but I found a series of problems when installing ftp.
Environment: redhat6.5 64-bit, no extranet, no installation CD
First of all, install the vsftpd service, yum install vsftpd, found that can not find the vsftpd package, the first idea is that there is a problem with the system source, verify, yum install gcc, the same problem can not find the gcc package, there are three solutions: first, update the system yum source, second, download related packages from the network, third, find the installation system CD, replace the existing yum source. The first two methods are that when the server can connect to the external network, it can only be the third way to download the relevant system iso image on the external network and upload it to the linux server / yum location. Record here and solve the steps.
1. Mount the iso file
Mkdir / mnt/yum # create mount point
Mount-o loop-t iso9660 / yum/rhel-server-6.5-x86_64-dvd.iso / mnt/yum # Mount the iso file to the created mount point
2. Change related configuration files
Cd / etc/yum.repos.d
In this folder, there is only one file rhel-source.repo by default. Copy the file and change its name to rhel-media.repo.
Cp rhel-source.repo rhel-media.repo
Vi rhel-media.repo
Modify three places
Name # modify it according to your own preference or not
Baseurl= file:///mnt/yum # here is the mount point we created
Enabled=1
Gpgcheck=0
Other default
Yum clean all # clear cache
Yum list # verifies that yum is available, and many installation packages are available.
3. Finally, set automatic mount in two ways:
(1) modify / etc/rc.d/rc.local file
Add mount-o loop-t iso9660 / yum/rhel-server-6.5-x86_64-dvd.iso / mnt/yum
(2) modify / etc/fstab file
Add / yum/rhel-server-6.5-x86_64-dvd.iso / mnt/yum iso9660 defaults,ro,loop 0 0
Back to the original goal, it is divided into five steps:
1. Install yum install vsftpd, install complite!
2. View the vsftpd service
Service vsftpd status # check whether the vsftpd service is working
Chkconfig-- list vsftpd # check whether the vsftpd service is powered on and started
If there is a line of off, you need to modify it.
Chkconfig-level 2345 vsftpd on
3. Establish access users
Adduser-d / home/zwftp-s / sbin/nologin zwuser #-d specifies the user's home directory, and-s sets that the user can only access ftp and cannot log in to the system
Passwd zwuser # set password
4. Configuration parameters
Cd / etc/vsftpd
There are three files in this directory, ftpusers, user_list, vsftpd.conf
The first file is to set which users cannot access ftp;. The second file is the user list; the third is the main configuration file, which is to be modified.
Anonymous_enable=NO # setting forbids anonymous login
5. Turn off the firewall (very important)
Shut it down completely, or the firewall will start again after reboot.
/ etc/init.d/iptables stop
Chkconfig-level 2345 iptables off
At this point, the installation of the ftp server is complete and the windows connection is available.
The above is the analysis of the problem of installing the ftp server in redhat 6.5. if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.