如何在mac osx 虚拟机10.10 Yosemite上设置虚拟主机

如何在Mac OSX 10.10 Yosemite上设置虚拟主机
How to set up Virtual Hosts in Apache on Mac OSX 10.10 YosemiteAugust 1, 2014&29 CommentsSetting up Virtual Hosts in Apache on Mac OSX 10.10&Yosemite is&straight forward after you have your local Web Development environment up and running – get your web development up and running first including Apache, PHP and MySQL following this&&AMP stack guide here 10.10&if required.The process of setting up Virtual Hosts is done easier in the Terminal either using&nano&orvi&with&sudo&or as a&root&user,&&or you can you a GUI visual editor like&Text Wrangler&which allows access to the&/private/etc&directory by clicking ‘Show Everything” in the open dialog box.Allow the vhosts configuration from the Apache configuration file&httpd.confOpen the httpd.confsudo nano /etc/apache2/httpd.confSearch for ‘vhosts‘ and uncomment the include line# Virtual hostsInclude /private/etc/apache2/extra/httpd-vhosts.confAlso allow another module to run by uncommenting:LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.soEdit the vhosts.conf fileOpen this file to add in the vhost.sudo nano /etc/apache2/extra/httpd-vhosts.confAn example in the file is given of the format required to add additional domains, just follow this to create your new virtual host:&VirtualHost *:80&ServerAdmin webmaster@dummy-DocumentRoot &/usr/docs/dummy-&ServerName dummy-ErrorLog &/private/var/log/apache2/dummy--error_log&CustomLog &/private/var/log/apache2/dummy--access_log& common&/VirtualHost&We can take this example and extend on it, if you wanted a domain named&&for example, you can copy the existing text block and edit to suit:&VirtualHost *:80&
ServerAlias
DocumentRoot &/Users/USERNAME/Sites/apple&
ErrorLog &/private/var/log/-error_log&
CustomLog &/private/var/log/-access_log& common
ServerAdmin &/VirtualHost&So in the example above&a vhost for&</&is created and the document root is in the&Sites&folder, in the text block above I have also added in some&log files, what you need to change is the document root location&username&and&domain&name to suit your needs. Finish and save the file.Now also you need to map&the IP address to be the localhost.Map&Your IP address to&localhostsudo nano /etc/hostsAdd the Domain and ‘www‘ alias to resolve to the localhost address127.0.0. &Restart Apachesudo apachectl restartCheck out your local&vhost&domain in the browserLosing LocalhostOne caveat to note about virtual hosts is that once set up you lose your older document root previously at&/LIbrary/WebServer/Documents&or accessed in the browser athttp://localhost&what happens is that you get a 403 Forbidden Error. But the&~/username document root&is still compatible.To get around this, you need to add in a vhost for localhost and declare this vhost before any of the others, in the same file:sudo nano /etc/apache2/extra/httpd-vhosts.confAdd in:&VirtualHost *:80&ServerName localhostDocumentRoot /Library/WebServer/Documents/&/VirtualHost&Restart Apachesudo apachectl restartChanging the WebServer Default&UserOne of the frustrations of using the Users/username/Sites folder for&vhosts&is the permissions issues with things like updates and authentication.This is because the default&webserver user which runs&httpd&is known as&_www,&which will not be the user in your local account. If your machine is only in use by you and the webserver will run only under your account then you can change the user.Find Your User and GroupIn the Terminal use the id command to see your username&and groupidYou will get a bunch of user groups, you need your primary user&uid&and group&gid&namesuid=502(admin) gid=20(staff)Change&this back in&/etc/apache2/httpd.confRestart Apachesudo apachectl restartRestart Apache and now you are running&httpd&as your local account.转载连接地址:/set-virtual-hosts-apache-mac-osx-10-10-yosemite/#apacheuser
最新教程周点击榜
微信扫一扫更多频道内容在这里查看
爱奇艺用户将能永久保存播放记录
过滤短视频
暂无长视频(电视剧、纪录片、动漫、综艺、电影)播放记录,
使用您的微博帐号登录,即刻尊享微博用户专属服务。
使用您的QQ帐号登录,即刻尊享QQ用户专属服务。
使用您的人人帐号登录,即刻尊享人人用户专属服务。
按住视频可进行拖动
把视频贴到Blog或BBS
当前浏览器仅支持手动复制代码
视频地址:
flash地址:
html代码:
通用代码:
通用代码可同时支持电脑和移动设备的分享播放
收藏成功,可进入查看所有收藏列表
方式1:用手机看
用爱奇艺APP或微信扫一扫,在手机上继续观看:
虚拟机 vmware 安装mac os yosemite 10.10 体验
方式2:一键下载至手机
限爱奇艺安卓6.0以上版本
使用微信扫一扫,扫描左侧二维码,下载爱奇艺移动APP
其他安装方式:手机浏览器输入短链接http://71.am/udn
下载安装包到本机:&&
设备搜寻中...
请确保您要连接的设备(仅限安卓)登录了同一爱奇艺账号 且安装并开启不低于V6.0以上版本的爱奇艺客户端
连接失败!
请确保您要连接的设备(仅限安卓)登录了同一爱奇艺账号 且安装并开启不低于V6.0以上版本的爱奇艺客户端
部安卓(Android)设备,请点击进行选择
请您在手机端下载爱奇艺移动APP(仅支持安卓客户端)
使用微信扫一扫,下载爱奇艺移动APP
其他安装方式:手机浏览器输入短链接http://71.am/udn
下载安装包到本机:&&
爱奇艺云推送
请您在手机端登录爱奇艺移动APP(仅支持安卓客户端)
使用微信扫一扫,下载爱奇艺移动APP
180秒后更新
打开爱奇艺移动APP,点击“我的-扫一扫”,扫描左侧二维码进行登录
没有安装爱奇艺视频最新客户端?
爸爸去哪儿2游戏 立即参与
虚拟机 vmware 安装mac os yosemite 10.10 体验
播放量数据:
25.8万人已订阅
你可能还想订阅他们:
&正在加载...
您使用浏览器不支持直接复制的功能,建议您使用Ctrl+C或右键全选进行地址复制
安装爱奇艺视频客户端,
马上开始为您下载本片
5秒后自动消失
&li data-elem="tabtitle" data-seq="{{seq}}"& &a href="javascript:void(0);"& &span>{{start}}-{{end}}&/span& &/a& &/li&
&li data-downloadSelect-elem="item" data-downloadSelect-selected="false" data-downloadSelect-tvid="{{tvid}}"& &a href="javascript:void(0);"&{{pd}}&/a&
选择您要下载的《
色情低俗内容
血腥暴力内容
广告或欺诈内容
侵犯了我的权力
还可以输入
您使用浏览器不支持直接复制的功能,建议您使用Ctrl+C或右键全选进行地址复制vm10虚拟机安装Mac OS X10.10图文教程
作者:佚名
字体:[ ] 来源:互联网 时间:11-26 15:01:55
本文是一个利用虚拟机vm10安装Mac OS X10.10的图文教程,感兴趣的同学参考学习下.OS X 10.10昵称称叫做 Yosemite, 中文名:约塞米蒂或者优胜美地。是美国加州的一个森林公园
本文是一个利用虚拟机vm10安装Mac OS X10.10的图文教程,感兴趣的同学参考学习下.OS X 10.10昵称称叫做 Yosemite, 中文名:约塞米蒂或者优胜美地。是美国加州的一个森林公园。
一、所需软件
VMware Workstation 10
软件名称:VMware Workstation v12.1.1 中文破解版 精简自动激活软件大小:129.46MB更新时间:
装Mac OS X插件&
Mac OS X 10.9.3镜像
Xcode5.1.1
Xcode6 Beta&基本上所用到的软件都在上面了,点击即可下载,下面开始进入正题。
二、基本步骤
1.虚拟机的安装
下载上面的Vmare Workstation,以管理员身份运行,安装,一直下一步即可,别放C盘以免拖慢系统速度。VM安装好后,开始用注册机来激活,输入激活码即可。
2.插件安装
步骤一完成后,打开任务管理器,找到服务项,选择按名称排序,将框中四项全部停止运行。
然后打开下载的插件,解压unlock-all-v120.zip文件,找到&unlock-all-v120windowsinstall.cmd,右键以管理员身份运行,等待运行完即可。
3.Mac OS X 10.9.3的安装
相信你以上步骤已做好了,开启下面旅程吧。基本都是图片,所以很容易,just follow。
然后出现苹果标志,稍等片刻,会出现语言选择,选择简体中文再下一步
然后点击左上角的磁盘工具,选择退出磁盘工具。然后在安装界面点击继续,再点击安装
安装完成,直接重启即可。至此,所有的安装步骤都完成了。
4.VMTool以及Darwin6.0.3的安装
5.设置共享文件夹
共享文件夹的说明:由于虚拟机无法访问本机的硬盘,所以需要设置共享文件夹来方便虚拟机读取电脑的物理内存。
6.升级Mac OS X Yosemite
步骤类似,首先将CD弹出,设置为10.10的镜像文件,然后连接CD即可,类似VMTool的安装。直接点击安装或下一步即可。由于上传大小限制,所以我将原来的镜像文件切割成两部分,下载下来后,直接解压那个zip文件即可,然后就能得到iso文件了.
三、其他的一些tips
当再次打开虚拟机时,发现进入的是下面界面
之前装好的虚拟机不见了,不要着急,按照下图设置即可
是不是又出现了,接下来就尽情的玩耍吧,Xcode 6 是必不可少的啦。
大家感兴趣的内容
12345678910
最近更新的内容OS&X&Yosemite&虚拟机文件&For&VMware&10
本人未尝试,请谨慎下载,转载自:http://js.13168.org//22300.html
提供一个用虚拟机安装好了的OS
X Yosemite。只要用已经Unlock了的VMware
10打开它就可以开始Yosemite之旅了
?VMware Workstation
10(所谓虚拟机,没有这个当然不行。请自行安装unlock-all-v130)
?WinRAR(解压用)
1,下载本文件的Part1和Part2.
2,用WinRAR解压。
3,在Virtual Machines文件夹(通常是在我的文档里面)建立一个名字为Mac OS X
10.10的文件夹。
4,把解压后得到的5个文件放进Mac OS X 10.10文件夹里。
5,启动VMWare Workstation 10。
6,依次点击文件→打开,然后选择打开Mac OS X 10.10文件夹里的Mac OS X 10.10.vmx
7,投入Mac OS X 10.10虚拟机的电源。
8,此时,VMWare会问你是移动了虚拟机,还是复制了虚拟机,请点击复制。
9,出什么提示都点击OK。
10,没有什么意外,估计就可以正常使用了。
本安装源来自网络,请安装测试后删除,版权归苹果公司所有。
下载地址(RAR压缩包内涵3%的恢复记录)
&&File: Mac OS X
10.10.part1.rar
CRC-32: 2642104a
c4fcf5a4987cfadd4d960606
daa2dc7ac8b84602b2228
SHA-1: 92d83c1d10aa101e0
地址(百度盘):
提取码:me6w
&&File: Mac OS X
10.10.part2.rar
CRC-32: 56e60228
eb695b6c103ff8c24cea34
b15ea0fb51c2c2cf9fad7b9a84bda5e5
SHA-1: 9cc402f41a29be3f7757e5bfe3d45e3f8783bb44
地址(百度盘):
提取码:r6us
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。}

我要回帖

更多关于 mac配置虚拟主机 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信