A. 在目标主机上设置NFS 共享目录,修改/etc/exports 增加如下条目: /mnt/asterisk 192.168.12.0/255.255.255.0(rw) B. 启动NFS服务 service nfs start 如果NFS服务已经启动,那么重读exports exportfs -ra
客户端设置 (2.2.18以上内核内建支持NFS)
手工mount: mount 192.168.12.238:/mnt/asterisk /path/of/client/nfs
自动mount: 修改 /etc/fstab,增加一条 192.168.12.238:/mnt/asterisk /path/of/client/nfs nfs rw 0 然后执行: mount -a -t nfs
DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place #RedirectMatch ^/$ /apache2-default/ </Directory> ErrorLog /var/log/apache2/error.log </VirtualHost> 注意: * NameVirtualHost *:443 后面要带上443这个端口,普通80端口的VirtualHost要写为 NameVirtualHost *:80 * VirtualHost总配置选现中写为 _default_:443,表示侦听任何网络接口上的443端口 * 如果先前80端口的站点配置为 VirtualHost *,将它改写为VirtualHost _default_:80 * SSLCertificateFile 指向证书文件的路径 * SSLCertificateKeyFile 指向证书对应的私钥文件路径 重新启动apache2,使用curl测试 curl https://localhost/ * SSLEngine On 启用ssl连接
安装vmware tools套件,然后复选Time synchronization between the virtual machine and the host operating system 对于win, 在VMWare Workstation中选择Install VMware Tools,然后在Guest Win OS中会自动 出现虚拟驱动器,打开可以看到安装程序 对于lin, 在VMWare Workstation中选择Install VMware Tools,然后在Guest Lin OS中会出现 /dev/hdc设备,将此文件自动挂载,即可实现