First time using Linux to build the lamp environment

Source: Internet
Author: User

This is a diary, not a technical blog.

Well, yes, I decided to learn the Linux system. It's not the first time you touch the command line, but it's pretty stressful. Watch the Linux basics video for two days and start building your own lamp environment.

about why to start contact with Linux, mainly is recently learning the front-end knowledge, want to change the taste .... The small web site that I used to write is also published by IIS under Windows, so I decided to try to build a Linux Web server on a whim. Since the building is a Web server, then the preferred natural lamp environment, that is linux+apache+mysql+php. As for why lamp is, of course, because I have only heard this AH.

In fact, I am not pure white, my vmware In addition to lying on Windows XP and Windows Service 2008, there is a Kali and Ubuntu. Originally wanted to play Kali to do a dream of hackers, but did not insist on living. In short, after the decision to build a Linux Web server, I immediately started the laying of the body for many years of Ubuntu, Bing (even without Google and Baidu) "Linux build Web server." Reality ruthless face, command all forget the light of the people also paranoid build server?

So, I honestly go to MU class network to find the basic Linux video from the most basic command line learning, the software installed in the example of installing software is one of the lamp environment Apache, I feel I learned almost, can go to try to build a server!

The natural building is the server, that does not need a graphical interface, so I installed the CentOS. In CentOS I installed apache,mysql,php after using CD as Yum source and Bing "Linux Build Lamp". After installing the configuration is really exhausting me, the virtual machine bridge to the LAN, although can ping, but dead and alive access. Because the first reference blog uses the source code installation method, I commit two followed by the modification of some configuration files, do not know if this is the cause. Fortunately I after the installation of CentOS saved the next snapshot, I can not solve the decisive back, s/l Dafa good. After the back of the file to find a yum installed after the installation or the method of access, Bing modified Apache conf file or no use, virtual machine with links command can access, and the LAN is dead or alive do not open the page, it is a poi! Bing searched for one hours is no solution, accidentally with Chrome opened a bit actually opened. Spicy Chicken window of the world, losing my money, ruin my life!!

In short, the environment is built up, the site can also be visited, the next problem comes. My real host is the WIN10 system, how to send the WIN10 system to the Web site to the virtual machine CentOS system, and then use the WIN10 to access?

Bing ....

The solution is quite a lot, such as building an FTP server Ah, download can and Windows Synchronization folder software, and so on. A little bit of trying to find out what I've learned seems a little inadequate. I can't understand what the blog says ....

I'm going to go back to watch the video when I suddenly think of git version management tools, I know that after GitHub before git. I've been mixing two of them before, thinking it was a thing. Although I still do not know what these two functions, but at least I know that these two can be combined to complete my needs. Decisive Bing Search ~

Fortunately my CentOS version is more than 6.0, can be installed directly with Yum Git,yum Dafa good! While looking at the blog side configuration, GitHub's account was registered before, but because you can not read English has not been to .... Anyway, the next step is to install git-->, get a local warehouse--Get an HTML file when the test file--Generate an SSH public key--throw it into your GitHub account--and create a remote repository on GitHub-- Put Git's repository on GitHub--and at GitHub you've modified the test file on git sync--and synced the repository in local CentOS. After synchronization to find the local HTML file content has changed, with the LAN can access the changed HTML, it's done!!!!

Git+github is not specifically for file synchronization, which is just one of the features. Of course, I will not only take to synchronize files, I have a strong interest in GitHub before building a Web server, but do not understand English can not be happy in the world's largest and ♂ sex dating sites play. This time also take this opportunity to use the next GitHub, deepen the understanding of it.

Building services also took a lot of time, the bumps on the journey on a lot of pits, web site history is also several pages of blog records. Of course, the accomplishment after the completion of the feeling is quite bursting. I just like this sense of accomplishment decided to be a programmer, the road is long and its repair far, I will go up and down and quest.

First time using Linux to build the lamp 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.