Keep trying to reach the other side

Source: Internet
Author: User

See the mountains are mountains, see the water; see the mountains are not mountains, see the water is not water; see the mountains or mountains, see the water or water. -- Three realms of life in the Buddhist family

Recently, a project developed with Django needs to be deployed. The project uses djangorestfulframework, MySQL-Python, and Pil. The installation must be performed in a dark room without a network! After all the twists and turns, we finally have a simple and effective solution, which makes people lament. So I want to share this process with you. Analyzing your own thinking process should also be very interesting.

  Easy to install software packages

Yes, it's easy. I quickly found the MySQL Community edition address. I don't know what's going on. I failed to use rpm for installation after downloading it separately. I tried to package it on the official website again. Once again, I had to install rpm, and I felt a surge in confidence. After you find mysql-python on SourceForge and download it, use Python setup. the py install result cannot be installed. It seems that it is really convenient on windows. There is an EXE version, and suddenly there is a feeling that I want to go back to be a dummies. I searched the internet and the problem still couldn't be solved. It seems that there was an RPM package during the last installation, but I couldn't find it. Alas, it's hard for me to install such a simple package.

Yes, it's easy. Confidence is like a roller coaster, and now it's diving. I have to withstand it. I also thought of Yum-downloadonly. After all the RPMs are ready, they still cannot be installed. I really don't understand it. I just gave it all the dependencies. Why can't Yum be recognized, also, TM prompts that the dependency item is missing! Later, it seems that I understand it, but this is not the case. Mysql-Python cannot be used, and Python-imaging cannot be used.

  Installation package is not simple

  Yes, stick to it. Use a DVD to install centos6.5 In the VM, and try to install MySQL again to mount Mount/dev/CDROM/Media/CDROM in dvd2. However, use

Yum -- disablerepo = \ * enablerepo = c6-media install MySQL, but prompts that the repo. xml cannot be found, I ran to the directory to find it, indeed no. With a try, I mounted dvd1 as well. Wow, you are here. When I want to use yum, it must have downloaded the XML file and then searched for it. It seems that things have gone a lot better here, and there is a feeling of hope for victory. Next, I installed MySQL, MySQL-server, httpd, Python-imaging, and MySQL-Python. Haha ..

The next thing to do is to think of the need for a CD and an optical drive, which is still not harmonious to use. Is there a better way, because we only have dvd1.iso and dvd2.iso. It turns out that Linux can:

losetup /dev/loop7 /pathtoyour/youriso.isomount /dev/loop7 /media/CentOS 

 

Then, the subsequent installation can be switched to the comfortable mode.

This is the problem I encountered during deployment. In fact, it is relatively simple. To put it bluntly, it is about how to find the required software and how to install it. My biggest achievement is to have a better understanding of Linux.

Welcome!

 

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.