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/03 Report--
The VSFtp1 built by FTP server. Create a virtual machine on the azure cloud, create and mount a 2T hard disk, and establish a hj account. Everything else is default. 2. Azure server enables ICMP service and ports ftp20 and ftp21,3600-3666. 3. Optimize system settings
Optimize process priority
Pidof sshd | xargs renice-n-20pidof ftpd | xargs renice-n-20
Turn off the firewall and SELinux
Ubuntu default firewall is off
Vi / etc/selinux/config#SELINUX=enforcing # comment out # SELINUXTYPE=targeted # comment out SELINUX=disabled # add: wq! # Save exit setenforce 0 # Let SELinux enter Permissive mode (tolerance mode) 4. Install vsftpd server sudo apt-get install vsftpd5. Configure the vsftpd.conf file sudo vi / etc/vsftpd.conflisten=NOlisten_ipv6=YES# this is to set whether anonymous login to the ftp server is allowed, not allowed. Whether anonymous_enable=NO# allows native users to log in to local_enable=YES# allows files to be uploaded to the ftp server chroot_local_user=YESchroot_list_enable=NOallow_writeable_chroot=YES# (default follows) allows users configured in the chroot_list file to log on to this ftp server. Chroot_list_file=/etc/vsftpd.chroot_list# this option should be an empty directory name. Also, the ftp user does not have write permission to the directory. Occasionally, this directory is used as a secure chroot () jail when vsftpd does not need to access the file system. The directory where the uploaded and downloaded files of the secure_chroot_dir=/var/run/vsftpd/emptypam_service_name=vsftpdrsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pemrsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.keyssl_enable=NO# configuration ftp server are located. Local_root=/data/ftpfile/share# increases the range of random ports, and random ports can be used in passive mode, which solves the problem that the directory cannot be listed when the client connects to FTP. Pasv_max_port=6666pasv_min_port=66006. Create ftp groups, users, access directories
Create a ftp group
Groupadd-g 2001 ftpgroup
Create a ftp user
The useradd command that specifies parameters for the user:
Common command line options:
-d: specify the home directory of the user
-m: if it is no longer created, but this directory does not belong to the newly created user; if the home directory does not exist, it is forced to be created;-m and-d are used together.
-s: specifies the shell version when the user logs in
-M: do not create a home directory
Sudo useradd-d "/ home/ftpuser"-m-s "/ bin/bash"-g ftpgroup ftpusersudo passwd# enter password
Create a ftp directory
Mkdir / data/ftpfile/sharechown-R ftpuser.ftpgroup / data/ftpfile/share7. Configure the ftp server to use information such as users
Put the user names that are allowed to use this ftp server in the chroot_list file
Sudo vim / etc/vsftpd.chroot_listftpuser8. Restart ftp and test sudo / etc/init.d/vsftpd restart or sudo systemctl restart vsftpd
Upload data
Ftp > mput libzmq.tgz.
Download data
Ftp > get libzmq.tgzftp > mget *. * (enter)
Disconnect
Ftp > bye
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.