在Mac上开发的虚拟LAMP服务器.实现此目标的最佳方法是什么? [英] virtual LAMP server, developing on mac. what's the best way to achieve this?

查看:111
本文介绍了在Mac上开发的虚拟LAMP服务器.实现此目标的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在通过Parallels在Mac上运行虚拟Ubuntu Server.确实不错,但是在虚拟环境中工作可能会有点慢.

I'm currently running a virtual Ubuntu Server on my mac via Parallels. It is really quite alright, but working in the virtual environment can be a little slow.

我希望只运行服务器,但要在Mac端进行实际开发.我真的只希望服务器在后台静默运行,而所有开发工作都在Mac上进行处理.

I am looking to just run the server, but do the actual development on the mac side. I really just want the server to run silently in the background whilst all dev work is handled on the mac.

任何人都可以设置类似的内容,并且可以为我提供一个简洁的教程吗?

Has anyone set up something like this and would be able to point me to a fairly concise tutorial?

(对我而言)一些挑战是:

Some of the challenges (for me) are :

  • 访问服务器上的文件进行编辑
  • 虚拟主机
  • 使用mac控制台而不是虚拟服务器的

推荐答案

我建议在OS X主机上安装LAMP,MAMP或XAMPP并通过它进行开发,

I suggest installing LAMP, MAMP or XAMPP on your OS X host and developing via that,

但是,如果您坚持要求,则可以选择. 使用eclipse进行开发,它支持远程项目(尽管某些功能受到限制),因此您可以在其中输入虚拟来宾IP并访问项目文件.

But if you insist, there are options. Use eclipse for development and it supports remote projects (though some functionality is limited) so you can enter virtual guest IP and access project files there.

您还可以在来宾上设置OpenSSH,以在自己的控制台中通过ssh访问其控制台.

You can also setup OpenSSH on your guest to access its console via ssh in your own console.

我不知道虚拟主机的含义,您打算设置驻留在主机OS上的虚拟主机吗?我认为这不可能.

I dont know what you mean by virtual hosts, Do you intend to setup virtual hosts that reside on your host OS? I dont think it'll be possible.

我要提供的解决方案是在主机(OS X)上使用SVN或任何其他版本控制,对其中的更改进行提交,在ubuntu上运行cron或守护程序,该程序经常在文件夹上进行"svn更新"

The solution I'd offer would be to use SVN or any other version control on your host (OS X), commit changes into that, run a cron or daemon on your ubuntu that does "svn update" frequently on your folder.

这篇关于在Mac上开发的虚拟LAMP服务器.实现此目标的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆