当前位置:网站首页>Construction and use of FTP server and NFS server
Construction and use of FTP server and NFS server
2022-07-28 04:00:00 【hgswnsa】
Tips : When the article is finished , Directories can be generated automatically , How to generate it, please refer to the help document on the right
List of articles
File server
Role of file server : Upload and download files on the network 、 centralized management 、 Share
ftp Server setup
ftp: Can achieve Windows and Linux File sharing , Upload and download files
step :
1. View the system environment
2. Install the software vsftpd
3. start-up vsftpd service
4. visit ftp The server
1. View the system environment
cat /etc/centos-release
2. Install the software vsftpd
vsftpd namely very secure ftp deamonyum install vsftpd -y
3. start-up vsftpd service
service vsftpd start
4. visit ftp The server
Enter... In the browser ftp:// Yours ip Address , Such as :ftp://192.168.253.130
If you can't visit , Maybe the firewall is not off Or the browser cannot access , Accessible browsers :360 browser 、 Sogou browser

ftp Use of servers
Install the commands of two clients , Used to log in ftp Service yum install ftp lftp -y
nfs Server building
nfs: Mainly to achieve Linux and Linux File sharing between , Generally used in LAN
step :
1. Install the software
2. Start the service
3. Modify the configuration file , share /share
1. Install the software
yum install nfs-utils -y
2. Start the service
service nfs start
3. Modify the configuration file , share /share
# Create a shared folder , Create some new files
[[email protected] ~]# mkdir /share
[[email protected] ~]# cd /share/
[[email protected] share]# touch xxx yyds yyjc
[[email protected] share]# ls
xxx yyds yyjc
# Modify the configuration file , Share with 192.168.2.1~192.168.2.254, Shared folder is /share
[[email protected] share]# vim /etc/exports
[[email protected] share]# cat /etc/exports
/share 192.168.2.0/24(rw)
# Refresh configuration , restart nfs service
[[email protected] share]# exportfs -rv
exporting 192.168.2.0/24:/share
[[email protected] share]# service nfs restart
Redirecting to /bin/systemctl restart nfs.service

nfs Use of servers
Operate on another machine
1. install nfs-utils
yum install nfs-utils -y

2. Mount to /mnt Next
mount 192.168.2.170:/share /mnt
there ip The address is that of your previous machine ip Address
Use df -Th Command to check whether it is attached 
Switch to /mnt Catalog , You can see /share Files in the folder 
summary
ftp: Can achieve Windows and Linux File sharing , Upload and download files
nfs: Mainly to achieve Linux and Linux File sharing between , Generally used in LAN
边栏推荐
- cookie与Session
- Advanced Mathematics (Seventh Edition) Tongji University exercises 3-4 personal solutions (the last 8 questions)
- [Luogu p4590] garden party (DP set DP)
- Prefix-Tuning: Optimizing Continuous Prompts for Generation
- Notes on writing questions in sword finger offer
- 高等数学(第七版)同济大学 习题3-6 个人解答
- un7.27:如何在idea中成功搭建若依框架项目?
- CV2. Threshold(), CV2. Findcontours(), CV2. Findcontours image contour processing
- 2022.7.13-----leetcode.735
- From Clickhouse to Snowflake: MPP query layer
猜你喜欢

Super easy to use PC end long screenshot tool

Data rich Computing: m.2 meets AI at the edge

Differences among BRD, MRD and PRD

Analysis of static broadcast transmission process

Advanced Mathematics (Seventh Edition) Tongji University exercises 3-4 personal solutions (first 8 questions)

C语言:求一个整数存储在内存中的二进制中1的个数
![[leetcode] 34. Find the first and last positions of elements in the sorted array](/img/f0/3eaa33fa7b13abe5f27b136239507d.png)
[leetcode] 34. Find the first and last positions of elements in the sorted array

cookie与Session

Monotonous stack -- 42. Receiving rain -- a difficult problem that big factories must know

Embedded development: tips and techniques -- the best practice of defensive programming with C
随机推荐
基于SSM实现在线租房系统
Differences among BRD, MRD and PRD
jdbc使用
静态博客搭建工具汇总
高等数学(第七版)同济大学 习题3-4 个人解答(前8题)
WordPress简约mkBlog博客主题模板v2.1
Chinese Remainder Theorem of X problem
Jumping game II in question 45 of C language power deduction. Ergodic jump
Build an "industrial brain" and improve the park's operation, management and service capabilities with "digitalization"!
Dynamic planning - 62. Different paths
Interface automation test, complete introduction
pip-script. py‘ is not present Verifying transaction: failed
MySQL是怎么保证高可用的
Istio's Traffic Management API
Greedy - 53. Maximum subarray sum
程序人生 | 测试工程师还只会点点点?7个捷径教给你快速学习新技术...
Summary and interpretation of CONDA virtual environment
C language: realize the exchange of two numbers without creating temporary variables
Leetcode 0141. circular linked list - three solutions
Detailed explanation of string + memory function (C language)