How to mount a ftp host as a local directory in Linux
RHEL / Ubuntu 9-04-2023, 17:15 sobir 854 0
![How to mount a ftp host as a local directory in Linux](/uploads/posts/2023-04/1681041791_ftp.jpg)
In this tutorial we will mount a ftp host as a local directory. For this we need a tool curlftpfs.
You can install curlftpfs with next commands:
Ubuntu / Debian
apt install curlftpfs -y
RHEL
dnf install curlftpfs -y
Edit fstab for automount connection after reboot:
curlftpfs#user:pass@ftp_host /mnt/ftp_storage fuse rw,uid=500,user,auto 0 0
Apply settings:
mount -a
Quick setup docker and docker-compose with a simple bash script....
ПодробнееНастраиваем связку NGINX + Apache с mod_rewrite + PHP-FPM....
ПодробнееКонтейнеризируем сервисы LEMP с помощью docker-compose....
ПодробнееОграничиваем доступ группе пользователей по протоколу SFTP и создадим синонимы директорий в дереве файловой...
ПодробнееHow to fix the user and login mapping after recreate?...
ПодробнееНовые комментарии
Салом, можно ещё создать файл в /etc/nginx/proxy_params, a потом добавить туда
![img](/templates/ITBlog/dleimages/noavatar.png)
Можно ещё так: 1. Создаем отдельную сеть для наших контейнеров docker network
![img](http://www.sysops.host/uploads/fotos/foto_1.png)
Спасибо за отзыв, написал отдельную статью по установке и настройке Ansible
![img](/templates/ITBlog/dleimages/noavatar.png)
Думаю в статье необходимо также описать процесс установки Ansible.
![img](http://www.sysops.host/uploads/fotos/foto_1.png)
Принудительное обновление сертификата: certbot certonly --force-renew -d
![img](http://www.sysops.host/uploads/fotos/foto_1.png)
Можно, но я решил описать процесс копирования ключей более подробно.
![img](http://www.sysops.host/uploads/fotos/foto_1.png)