How to use Linux in a development environment

Source: Internet
Author: User
Tags svn update

How to use Linux in a development environment

1. Why should I write this article?

Always want to learn more about the use of Linux, so the family's notebook installed Linux system, but to build their own system for the development of a suitable environment is really a laborious thing, and will often appear some puzzling problems, with my own experience feel to use Linux as a development environment , you need to understand each software, otherwise there are some problems will be difficult to solve, the other does not say, is the light to drive the problem to let people egg pain.

My Computer installed Linux has been high temperature, in the Internet to find some methods, turn off the unique show no matter how much, the boot 2-hour temperature soared to 70-90 degrees, tried many distributions, Debian,ubuntu,centos,fedora did not solve the problem, As for those gentoo, such as the light to see the comment on the scare, every time to toss a long drive problem, but also some of the source of the system is Party cover, if you want to drive, development environment, office use of software toss is really a laborious thing, and can only use the Web QQ, WINEQQ is still so old version also bad use, Bclode often login not up, reported unknown error, due to the need for work, I am destined not suitable for a full Linux office environment. However, as a programmer of Linux and the ability to use and troubleshooting, so I will share the way I use today.

2.windows + Virtual Machine

Linux in the virtual machine is very common, many of my colleagues in order to learn in the virtual machine installed Linux, nothing when Daoteng two, but did not use the actual work, so I would like to why not put our code, services into the Linux virtual machine inside, Then using Windows to access the services inside, code can be developed under Windows, deployment to Linux, I think this has the following benefits:

1. Synchronize with the production environment to ensure that your code can run under Linux.

2. Easy to transplant, directly to the virtual machine file package to another computer can be used.

3. You can regularly put the virtual machine files on the cloud disk, equivalent to back up the system, at any time to restore (but the file is too large upload a little trouble, backup to the hard disk is very convenient)

4. Because Linux is used in development, often play can certainly learn something, this is needless to say.

3. Implement

On the internet to see a variety of virtual machine comparison, of course, VMware is better, and provide vmvare-tools, shared folders, shared network is very good, shared folders are attached to Linux, you can put the development of the code into the shared folder, so that Linux can be deployed, Also do not need code copy to test, or with SVN update what, it is more troublesome.

My plan is WIN7+CENTOS7 because the production environment uses CentOS, but there are some considerations when actually implemented:

Vmvare provides 3 ways to network-share bridging, NAT, and host-only What's the difference? I won't say it, check it myself. Usually use bridging, so that the virtual machine is the equivalent of a separate machine, the other machines can access the services inside the virtual machine, but I work in the company because each computer to be registered to the Mac to the Internet, so I have to choose the NAT mode, NAT mode does not need any settings, relatively simple, But the host is unable to access the services inside the virtual machine, and later on the Internet to find a solution is to do port mapping. :

  

Through the 800 port of the machine to access the virtual machine inside the 80 port, the implementation is also very simple, just need to do a port mapping in the virtual machine can be.

Select NAT Mode NET Settings, edit-in VMware, virtual network editor, add

  

And then save it, and if not, check out the Linux firewall and open port 80. If you want someone else's computer to be accessible, you'll also need to set it up in Windows Firewall. Of course, brother is lazy, because the development of the time often to others to see, are directly shut down the firewall. Of course, you can also put the database and so on Linux, Windows only installed some software to use the services in Linux.

But with the virtual machine if you want to be able to configure the computer is still required, I am 8G of memory, virtual machine open 2G memory, open virtual machine, IDE and other working software to occupy 80%-90% of the memory, use or relatively smooth, you can also run the virtual machine background, only use its service is good.

  

Category: CentOS, Environment deployment

How to use Linux in a development environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.