NFS不支持跨平台
network file system(网络文件系统)
为客户机提供共享使用的文件夹
软件包:nfs-utils
rpm -q nfd-utils
服务:nfs-server
2创建共享目录 完成共享配置
mkdir /public
echo haha > /public/1.txt
vim /etc/exports 主配置文件
/public *(ro)
systemctl restart nfs-server
systemctl enable nfs-server
客户端desktop 访问
2手动挂载
mkdir /mnt/nsd
showmount -e 172.25.0.11
mount 182.25.0.11:/public /mnt/nsd/
ls /mnt/nsd/
df -h
数据同步
3自动挂载
_netdev:声明网络设备
系统在网络服务配置完成后,在挂载设备
vim /etc/fstab
172.25.0.11:/public /mnt/nsd nfs defaults,_netdev 0 0
umount /mnt/nsd/
df -h
mount -a
df -h
http服务
http:超文本传输协议 端口:80
B/S架构的网页服务
——服务端提供网页
——浏览器下载并显示网页
web服务 http协议 httpd(软件) Apache基金会
HTML超文本标记语言
安装 书写页面文件:
yum -y install httpd
echo '<h1>nsd1905 > /var/www/html/index.html
cat /var/www/html/index.html
重启
systemctl restart httpd
systemctl enbale httpd
提供的默认配置:
Listen:监听地址:端口80
servername:本站点注册的DNS名称
DocumentRoot:网页根目录(/var/www/html)
Directoryindex:起始页/首页文件名(index.html)
mkdir /var/www/myweb
echo '<h1>woshi myweb' > /var