Python server environment setup (1) -- local server preparation, python local server

Source: Internet
Author: User

Python server environment setup (1) -- local server preparation, python local server

At the end of last October, the company went to work for a new company. Due to various problems in the company's old system and the inconvenience of expansion, the company's leadership placed great expectations on the 17-year plan, and the number of users and income had to reach a new level, after a comprehensive evaluation, I decided to use python to reconstruct all of them. It took about more than a month to develop a distributed system based on the microservice architecture. After the development in December, then I went to my friend, O & M Daniel and Dai, and set up the server (here, I made an advertisement for Dai: good character, good technology, and low fees. Our company outsourced the server maintenance service to him, configure a variety of servers very fast, want to learn python and automated O & M can go to his blog http://www.linuxyw.com/), after multiple rounds of testing in January went online, I encountered many pitfalls in the middle, but I also tried to overcome them one by one. The number of users and the number of connected partners have been growing continuously, and they have been operating stably for more than two months, in order to provide training guidance for colleagues in the company's technical department on python and server maintenance, the relevant content of server environment construction is recorded for future viewing.

 

First prepare Virtual Machine Software (VMware-workstation-10.0.1) and CentOS7, operating system win7 and later versions

Then install the Virtual Machine

  

  

  

Click next and the page will jump to the registration code page. You can skip or enter the registration code and then complete the installation.

  

  

Install Linux

Open the VM and click Create New VM.

  

  

  

  

  

  

  

  

  

You need to select the NAT mode here. The Bridging Mode does not know why the Linux system cannot allocate IP addresses after the configuration.

  

  

  

  

  

  

Set Linux Internet IP Address

  

Modify the default IP address of NAT to the IP address of your network (for example, if your network segment is 192.168.1.x, It is configured with 192.168.1.0 ), in this way, the WEB service configured on this server can be accessed by other computers.

  

Set CentOS7 installation path

  

  

Set the server network connection mode

  

 

Start CentOS Installation

  

  

  

  

You must select English here. If you select Chinese, you will find some Chinese garbled characters in the command line.

  

Enable the network connection mode

  

Normally, you can immediately see the IP address of the current virtual server after enabling it. Write down this address and use SSH to connect to it later.

  

Click Finish.

  

  

Set the logon password of the root account.

  

If the password is too simple, you need to double-click it.

  

Then wait for the system to automatically install

  

Complete the installation and restart the system.

  

The logon page is displayed.

  

Enter the root account and the password set earlier to access the Linux system.

  

Use SSH to connect to the Linux Service (if not, you can download one by yourself)

  

  

  

OK, complete the installation of the Linux System

The next article will introduce in detail the deployment of the python server and the installation instructions of related services for automatic release.

 

 

Copyright:

This article is original and published by AllEmpty in the blog Park. Copyright is jointly owned by the blog Park. You are welcome to reprint this article. You must keep this statement without your consent and provide the original article link clearly on the article page,Otherwise, the right to pursue legal liability is reserved.. If you have any questions, you can use1654937@qq.comThank you very much for contacting me.

Publish the content of this series,MasterYesIt is to learn and make progress together with everyone. If you are interested, you can add Q group: 327360708. Let's discuss it together.

For more information, please refer to blog: http://www.cnblogs.com/EmptyFS/

  

  

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.