mount -t cifs -o username=administrator,password=*****,gid=1000,uid=1000,dir_mode=0770,file_mode=0770 //192.168.2.10/ServerD/linuxshare /home/linuxshare
//192.168.2.12/Server-2/wwwroot /www/wwwroot cifs user,uid=1000,rw,suid,username=administrator,password=********* 0 0
mount /www/wwwroot
其中:gid与uid为www用户的权限,解决nextcloud的770问题!
加入到开机启动:vi /etc/rc.d/rc.local
==============================================
以下挂在onlyoffice到docker的启动项里面
sudo docker run -i -t -d -p 88:80 onlyoffice/documentserver
docker run -t -d -p 0.0.0.0:9980:9980 -e ‘domain=collabora\\.huima\\.net\\.cn:88’ -e “username=******” -e “password=********” –restart always –cap-add MKNOD collabora/code