UBUNTU配置多用户云WEB虚拟主机
2016-12-06 19:18
381 查看
1:创建www用户
2:创建文件夹建立NFS连接
3:设定目录权限常规脚本
userdel www groupdel www groupadd -g 200 www useradd -g 200 -u 200 www
2:创建文件夹建立NFS连接
mkdir /home/www/website mount -t nfs 10.96.81.203:/home/www/website /home/www/website
3:设定目录权限常规脚本
#整体授权 chown -R :www /home/www/website find /home/www/website -type d -print0 | xargs -0 chmod 750 find /home/www/website -type f -print0 | xargs -0 chmod 640 chmod 755 /home/www chmod 755 /home/www/website #给各个用户授权 mkdir /home/www/website/pm.96dt.com cd /home/www/website/pm.96dt.com mkdir wwwroot chown -R asheng . find ./wwwroot -type d -print0 | xargs -0 chmod 770 find ./wwwroot -type f -print0 | xargs -0 chmod 660 mkdir /home/www/website/www.eplvy.com cd /home/www/website/www.eplvy.com mkdir wwwroot chown -R fm838 . find ./wwwroot -type d -print0 | xargs -0 chmod 770 find ./wwwroot -type f -print0 | xargs -0 chmod 660 mkdir /home/www/website/www.lza.xyz cd /home/www/website/www.lza.xyz mkdir wwwroot chown -R lwl . find ./wwwroot -type d -print0 | xargs -0 chmod 770 find ./wwwroot -type f -print0 | xargs -0 chmod 660
相关文章推荐
- debian/ubuntu LAMP配置实例+VSFTPD虚拟用户管理网站
- Apache 虚拟主机的配置[Ubuntu]
- Ubuntu下配置Apache的虚拟主机
- ubuntu 12.04 配置虚拟主机
- ubuntu下和windows下配置apache虚拟主机
- ubuntu server 10.04 apache2配置多个虚拟主机
- Ubuntu下apache的多虚拟主机配置
- Ubuntu Apache 虚拟主机 VirtualHost 初级配置
- ubuntu apache2配置详解(含虚拟主机配置方法)
- [Linux] Ubuntu_9.04_server安装nginx+php(fastcgi)+nginx虚拟主机配置格式
- Ubuntu 配置 apache 虚拟主机以后出现 [warn] NameVirtualHost *:80 has no VirtualHosts
- ubuntu配置虚拟主机
- ubuntu apache2配置详解(含虚拟主机配置方法)
- ubuntu下apache&php&虚拟主机开发环境配置
- ubuntu LAMP配置实例+VSFTPD虚拟用户管理网站
- ubuntu LAMP配置实例+VSFTPD虚拟用户管理网站
- ubuntu apache2配置详解(含虚拟主机配置方法)
- 转:Ubuntu上apache多端口配置虚拟主机的方法
- ubuntu apache 配置虚拟主机
- ubuntu下xampp配置虚拟主机