Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the simply-static domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6121
树莓派共享目录

树莓派共享目录

sudo apt-upgrade
sudo apt install samba samba-common-bin
mkdir /path/to/shared-directory
sudo chmod 777 /path/to/shared-directory

配置Samba共享设置。编辑配置文件/etc/samba/smb.conf,在文件末尾添加以下内容:

[SharedDirectory]
   path = /path/to/shared-directory
   read only = no
   browsable = yes

增加权限

sudo smbpasswd -a pi

重启Samba服务:

sudo systemctl restart smbd nmbd