Загрузка...

Linux System Administration: Network Drives

Take your Linux skills beyond the basics with this intermediate Linux System Administration course focused on real-world enterprise environments. Learn how Linux is managed at scale in production, including SSH, systemd, users and permissions, logs, troubleshooting, networking, storage, LVM, cron, security, Bash scripting, automation, and day-to-day sysadmin workflows used in DevOps, SRE, cloud, and infrastructure roles.

This course is for learners who already know basic Linux commands and want practical experience managing Linux servers in large environments.

==============
= COMMANDS =
==============
## server ##
# List block devices, disks, partitions, and mount points
lsblk

# Install NFS server and client utilities
dnf install nfs-utils

# Enable and start the NFS server immediately
systemctl enable --now nfs-server

# Check the current status of the NFS server
systemctl status nfs-server

# Set ownership of the NFS shared directory to nobody:nobody
chown nobody:nobody -R /srv/nfs/share

# Edit the NFS exports file to define shared directories and permissions
vim /etc/exports *(rw,sync,no_root_squash)

# Open the manual page for NFS export options
man exports

# Restart the NFS server to apply export changes
systemctl restart nfs-server

# Permanently allow NFS traffic through firewalld
firewall-cmd --permanent --add-service=nfs

# Reload firewalld to apply the new firewall rule
firewall-cmd --reload

## client ##
# Install NFS client utilities
dnf install nfs-utils

# Mount the remote NFS share to the local mount point
mount -t nfs 244.178.44.111:/srv/nfs/share /mnt/test

# View kernel messages for NFS mount troubleshooting
dmesg

# Edit fstab to make the NFS mount persistent after reboot
vim /etc/fstab (244.178.44.111:/srv/nfs/share /mnt/test nfs defaults 0 0)

# Test all fstab entries without rebooting
mount -a

Видео Linux System Administration: Network Drives канала ExitZero
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять