In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
As mentioned earlier, in addition to using the ssh3 protocol, you can also use the ftp protocol to achieve network transmission between the virtual machine and the local machine. Specific methods:
The first step is to install vsftpd server
-install: rpm-ivh * .rpm
-query: rpm-Q vsftpd
-Uninstall: rpm-e vsftpd
As shown in the above figure, the version number appears, indicating that it has been installed.
The second step is to ensure network connectivity (as mentioned in the previous article)
Step three, turn off the firewall.
Step 4 start the vsftpd service
For convenience, you can set vsftpd self-startup:
Step 5: upload and download
There are many ways to do this, and you can also use other software.
[method 1] first of all, the most primitive method is, of course, our dos interface.
Cmd enters the command line interface, and enter: ftp to enter the ftp command interface. You can look at the meaning of the command.
Log in and enter the command: open IP address (you can also enter the command at the beginning of the dos environment: ftp 192.168.195.5)
Enter the user name and password (the password is not echoed, and root users are generally not allowed to log in. Please see below for modification)
1. Upload:
First, switch the local work path: lcd work path
Upload a single file: put [native file]
(equivalent to uploading native f:\ share\ ForkTest\ test.txt to / home/stu (default path))
Use the: put * command to upload all files in the current directory in batch.
2. Download:
First look at the files in the current directory (/ home/stu):
Download a single file:
[method 2] use LeapFTP tool.
Open LeapFTP, click "site"-"site Manager"-"add site" (write down the name of the station casually)
Fill in the server IP address, user name and password (anonymous users can also log in). The port number defaults to 21.
(note here: root users are generally not allowed to log in, and these related configuration files are under / etc/vsftpd: ftpusers\ user_list\ vsftpd.conf. If you want root users to log in, modify the first two files, comment out the root, and then restart the service: service vsftpd restart is fine.)
If you want to change the port number:
1. Edit / etc/vsftpd/vsftpd.conf, add listen_port=2121
2. Edit the / etc/services file and change the
Change ftp 21/tcp to ftp 2121/tcp
Change ftp 21/udp to ftp 2121/udp
3. Restart the service service vsftpd restart
Click "connection", and if "connection is rejected" appears, as shown in the figure below, please reconfirm that the above steps have been completed.
The successful connection is as shown below:
As shown in the following figure, the workspace on the left is the local machine, the right is the virtual machine, and the default current directory is the user's home directory. By dragging and dropping directly, you can upload and download.
[method 3] use a UE or EditPlus editor
For the convenience of tapping the code, it can be saved in real time, which is often used.
Open EP and also connect to ftp, as follows:
After adding, drop-down box on the left, you can find the ftp you just added
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.