Settings for anonymous access to the SPS Portal
In the past, we simply set the SPS portal to anonymous on the IIS server, which has been plagued by many access permissions. Recently, we found related articles on the Internet and finally completed anonymous portal access. In the past, anonymous access to the SPS portal was completed by two virtual servers (one anonymous and the other non-Anonymous). The following describes the implementation steps in detail:
1. log onto the SPS portal and cho
: 8000.Similarly, the packages from A to B can also be delivered smoothly.Conclusion 2: as long as the nat on both sides are not classified as Nat, two-way communication is also possible. In other words, as long as the nat on both sides belong to the cone Nat, two-way communication can be achieved.(2) nat on the side belongs to the elastic Ric NatBecause the-side Nat is an elastic Ric Nat, and the first packet sending process from A to C leaves the following records in the-side NAT:A (192.168.0.
In Linux, apache mysql and other services cannot be started normally after the default port is modified. Solution: Two webservers are installed on the server, and one is nginx on port 80, with no exception. The other is the port 8001 bound to apache, but the error "Starting httpd: (13) Permission denied: make_sock: cocould not bind to address" is returned when the service is started, the original culprit was selinux. A Brief Introduction to SELinux, s
in_addr type.
You can also use inet_ntoa () to convert the in_addr type to the string type.
The namelen parameter is the name length, that is, sizeof (name)
A typical example:
SOCKET s;
S = socket (AF_INET, SOCK_STREAM, IPPOTO_TCP );
Sockaddr_in addrbindto;
Addrbindto. sin_family = AF_INET;
Addrbindto. port = htons (8001) htons converts the u_short type to the network byte sequence, and htonl converts the u_long type to the network byte sequence.
Add
Now I have two service classes:
Userservice
Dictionaryservice
The configuration file is: System . Servicemodel > Services > Service Name = "Dictionaryserver. Dal. userservice" > Endpoint Address = "Net. TCP: // localhost: 8001/userservice" Binding = "Nettcpbinding" Contract = "Common. interface. iuserservice" > Endpoint > Service > Service Name = "Dictionaryserver. Dal. dictionaryservice" > En
Using system;
Using system. Collections. Generic;
Using system. text;
Using system. net;
Using system. net. Sockets;
Namespace udpserver{Class Program{Static void main (string [] ARGs){Int Recv;Byte [] DATA = new byte [1024];
// Construct a TCP Server
// Obtain the local IP address and set the TCP port numberIpendpoint ipep = new ipendpoint (ipaddresses. Any, 8001 );Socket newsock = new socket (addressfamily. InterNetwork, sockettype. dgram, pr
Label: style blog HTTP color Io OS ar SP Div
Installation:tar-zxvf Django-1.5.1.tar.gz CD Django-1.5.1 [[email protected] Django-1.5.1] # ls [[email protected] Django-1.5.1] # Python setup. PY install to view the version >>> import Django >>> Django. version (1, 5, 1, 'final', 0) to create a project [[email protected] ~] # Mkdir django_proj [[email protected] ~] # Cd django_proj/[[email protected] django_proj] # django-admin.py startproject testweb [[email protected] django_proj] # lstestweb a p
performance will be worse ). Click "Next", as shown in figure 7-22.
Figure 7-22 set the Certificate Name
Set Unit information, as shown in figure 7-23, and then click "Next. Set the public name, as shown in 7-24.
Figure 7-23 set unit information
Figure 7-24 set a public name
Note that the public name must be entered as the domain name to access the site. For example, to access the Web service with an address https://www.
and construct an object for the address to start sending messages.
When using multicast, pay attention to the TTL (Life Cycle Time to live) value settings. The TTL value is the maximum number of data packets that can be forwarded by the router. When the maximum value is reached, the data packets are discarded. If the default value is used (the default value is 1), it can only be sent in the subnet. You can directly set the TTL value through the TTL attribute of the udpclient object. For example
");# Exit;#}Route (1 );};
# If the request is for other domain use UsrLoc# (In case, it does not work, use the following command# With proper names and addresses in it)If (uri = myself ){
If (method = "REGISTER "){
# Uncomment this if you want to use digest authenticationIf (! Www_authorize ("openser.org", "subscriber ")){Www_challenge ("openser.org", "0 ");Exit;};
Save ("location ");Exit;};
Lookup ("aliases ");If (! Uri = myself ){Append_hf ("P-hint: outbound alias \ r \ n ");Route (1 );};
# N
is also simple, simply load the Web API site with the Webapp.start () method in Microsoft.Owin.Hosting before running the test.First NuGet installs the Owin host package:pm> install-package microsoft.owin.hostingpm> install-package Microsoft.Owin.Host.HttpListenerNext, start the Web API site with Webapp.start () in the constructor of the test class: Public classcommentswebapitest:idisposable{Private Const stringHost_address ="http://localhost:8001";
Nginx implements TCP reverse proxy
By default, Nginx only supports http reverse proxy. To enable nginx to support tcp reverse proxy, you also need to add tcp proxy module support during compilation, that is, nginx_tcp_proxy_module
The following procedure only enables nginx to support tcp_proxy, without prce, gzip, ssl, and other functions. If necessary, you can add relevant parameters during compilation.
Wget https://github.com/yaoweibin/nginx_tcp_proxy_module/archive/master.zipUnzip masterCd ng
Delphixe from 2010 onwards, the installation program after the installation is completed in the Programdata directory to copy a backup of the installation program, as the version of the upgrade package is growing, the space to occupy the C drive is more and more largeAlthough you can delete it by deleting it, you may be in trouble if you need to reload or add some features to remove it.Fortunately, the system provides the functionality of the soft link after Vista: Mklink commandMKLINK [[/d] | [
, External_links follows the same semantic usage as links External_links: -Redis_1 -Project_db_1:mysql -Project_db_1:postgresql Ports exposing ports, specifying both ports (Host: Container), or just the port of the container (the host is randomly assigned a port) Note: When a port is mapped in the form of a host: container, if the port of the container is less than 60, an error may occur because YAML resolves the data in such a format as XX:YY to 60 binary data, for this reason, always remember
*0*8001 (port number) *01 (after the outside line number two) # Consulting room Correspondence GroupWright: 13980802123 outside Dial group, 1 floor with 4, 2, 3 floor with the remaining 4 numbers.On the internal phone, dial 106 to check the extension number, Dial 161 port number, Dial 170 to check the outside telephone.On the switchboard, press *305*1# to turn on caller ID display.Call Forwarding: 1701+*57*+ destination number +#, Cancel transfer: 170
Configuring Uwsgi+nginx servers for Flask framework sites in Linux
There are myproject programs in the home/admin/directory with hello.py
1 Installing PIP
wget "HTTPS://PYPI.PYTHON.ORG/PACKAGES/SOURCE/P/PIP/PIP-1.5.4.TAR.GZ#MD5=834B2904F92D46AAA333267FB1C922BB"-- No-check-certificate
# TAR-XZVF Pip-1.5.4.tar.gz
# CD pip-1.5.4
# python setup.py Install
or Yum Installpip
2 Installing Nginx
cd/usr/local/
wget http://nginx.org/download/nginx-1.2.8.tar.gz
TAR-ZXVF nginx-1.2.8.tar.gz
CD nginx-1.2.8
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.