Use Nginx + uWsgi to implement static/dynamic separation of Python Django framework sites, nginxdjango
Because:
Django is not very friendly in processing static files;Php or other resource requests may need to be processed in the future;
Therefore, we should consider using nginx to make it a good route distribution function. Meanwhile,
Installing ubuntu12.04 on a virtual machine to automatically obtain the IP address is okay. The SSH connection is normal. After the instance is shut down and restarted, it finds that the network is disconnected.
1. Configure static IP
Gateway:
IP segment:
Command: Vim/etc/Network/interface
auto loiface l
Reverse Proxy
The reverse proxy can be understood as a service-side and server-side communication through an agent, the agent to distribute the requestNginx is often used as a reverse proxy for back-end servers, so it is easy to achieve static and dynamic separation, as well as load balancing, thus greatly improving the processing capacity of the server.
Common
1, enter the virtual Linux system, Vim/etc/sysconfig/network-scripts/ifcfg-eth0, the following content can be kept:Device=eth0//Use of network card identificationBootproto=none//Here represents the power-on protocol, there are three kinds (dhcp,static,none) DHCP Express automatic acquisition Ip,static Natural is statically assigned
instance is started, registering the instance and service to the listener. Whenever you start a database, two messages are registered to the listener by default: the instance and service corresponding to the database server.
When statically registered, the Global_dbname in Listener.ora provides the service name, and the Sid_name in Listener.ora provides the reg
routers tplink882 static IP can not be used to solve the Internet:
Broadband Line (household network cable or from the modem out of the network) needs to be connected to the router's WAN, the wired computer should be connected to the LAN port, the following figure:
If the line connection is correct, but the WAN port LEDs are not lit, check the WAN port wiring for bad contact, and t
1. Configure static IP address:# vim/etc/network/interfacesThe original content has the following 4 lines:auto loiface lo inet loopbackauto eth0iface eth0 inet dhcpThe above indicates that DHCP is used to assign IP by default and is modified as follows:auto loiface lo inet loopback# The Primary network interfaceAuto Eth0#iface eth0 inet DHCPiface eth0 inet static
Original URL: http://blog.csdn.net/njchenyi/article/details/87154171. Configure static IP address:# vim/etc/network/interfacesThe original content has the following 4 lines:auto loiface lo inet loopbackauto eth0iface eth0 inet dhcpThe above indicates that DHCP is used to assign IP by default and is modified as follows:auto loiface lo inet loopback# The Primary ne
Linux set static IP when the error has been: Job for Network.service failed. See ' systemctl status Network.service ' and ' journalctl-xn ' for details. Hang me for hours, write an essay here, and hope that friends who meet this problem don't waste their time on this issue,Input in Terminal: Vi/etc/sysconfig/network-scripts/ifcfg-eth0Configuration file: Save after configurationThen enter the
1. Static routes, dynamic routes, and default routing routers can have dynamic and static routes in two of the routing records in the middle of a table. Dynamic routing is generated automatically based on routing protocols, and static
test on the same static page: # AB-n 1000-c 200 http: // 10.10.11.91: 8080/index.html: 0.08M passed the above stress test results. all requests are processed by tomcat and compared with static and dynamic separation, there is no doubt that static and dynamic separation is t
1: Enter in Terminal: cd/etc/sysconfig/network-scripts/2: See if there is this file: Ifcfg-eth0, if there are then input edits, vi ifcfg-eth0:3: Start editing, fill in the IP address, subnet mask, gateway, DNS and so on. Where "These are the ones that must be."Device=eth0Bootproto=staticOnboot=yesipaddr=198.1.102.140netmask=255.255.224.0gateway=198.1.96.1Where: eth0 corresponding file name: Ifcfg-eth0If you need to configure more than one
In the process of learning arm, because of the need to use SMB and putty, these things are dependent on the IP connection, each boot system IP address will be different, resulting in the need to reconnect each time, it is laborious, so want to set the IP to static, so refer to the information on the Internet to integra
Tplink routers to set up static IP methods
If your Internet access is static IP, that is, you to the Network service provider (telecommunications or netcom) to apply for the broadband is a fixed IP address, and the network provid
]display IP routing-table =====static stands for static route, 60 represents static route priority Three, configure a floating route for backup To configure a backup static route, which can go R2 when a link between R1 and R3 fails. [R2]
If you use a static IP address to access the Internet, that is, the bandwidth you apply for from the network service provider (China Telecom or China Netcom) is a fixed IP address, and the network service provider provides all your internet
view the network details of the current PC connection to viewmetmask=255.255.255.0gateway=192.168.31.1 ----> The gateway address can also be viewed in the network and Sharing Center asdns1=8.8.8.8When you are finished editing, press ESC to enter: WQ Exit and SAVE! 4, and then restart the Network Service Execution command: service network restart This is the IP
Haproxy works in the user space (Layer 7) and can identify data at the application layer (HTTP packets. Therefore, you can schedule requests to different service groups based on different request types. That is, haproxy can identify the request information of HTTP packets for access control;
For example:
A group of servers Process Dynamic Resources: JSP and PHP
A group of servers process
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.