1. In Solution Explorer, click the name of the web project you want to set.
2. Press F4 to open the property panel, click the drop-down list next to use dynamic ports, and select false. This will activate the port number attribute.
3. Click the text box next to the port number and enter a fixed
Copy codeThe Code is as follows: '================================================ ========================================================== ================
CheckOS 'check the operating system version
Checkmestate' check the program running status
Main' execute the main program
Sub main ()Dim PortNumberOld, PortNumberNewSet wso = CreateObject ("WScript. Shell ")
PortNumberOld = regKeyRead ("HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal
Copy Code code as follows:
'===========================================================================================
Checkos ' Check the operating system version
Checkmestate ' Check program run status
Main ' Execute main program
Sub Main ()
Dim Portnumberold, Portnumbernew
Set WSO = CreateObject ("Wscript.Shell")
Portnumberold = Regkeyread ("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\ Rdp-tcp\p
you reside behind a restrictive firewall which does not allow Outgoing SMTP connections failed t to a designated mail server. you want to connect to a different mail server,mail.example.net, On port 25. You have an SSH account on a machineshell.example.org, Which does not reside within the restrictive firewall and can
1, info:maximum number of threads ($) created for connector with address null and port 8091Description: The maximum number of threads is wrongSolution:Using a thread pool to handle more access with fewer threads can improve the ability of Tomcat to process requests. How to use:First of all. Open/conf/server.xml, add
Executor name="Tomcatthreadpool" name
* to "namevirtualhost your server IP Address"3. There is a VM format at the end of the file,# # Serveradmin [email] [email protected] [/Email]# DocumentRoot/www/httpd/html/minidx.com# Servername minidx.com# Errorlog logs/minidx.com-error_log# Customlog logs/minidx.com-access_log common# Add:DocumentRoot usr/local/www/(default website path)Servername: Your Server IP AddressDocumentRoot usr/local/www/minidx.
System Environment:Linux:centos Release 6.5 (Final)LAMPSteps1.lamp turn on SSL# yum Install OpenSSL mod_ssl-y # installs OpenSSL and Apache SSL modules2. Method of certificate Generation# OpenSSL Genrsa-des3-out server.key 1024 # Generate server private key# OpenSSL Req-new-key server.key-out SERVER.CSR # Generate a server certificate request and fill in the relevant certificate information as required# Ope
network or enter the address, you can find that we have been configured successfully, but the main page of the jump is Tomcat's homepage, this time we need to redirect the main page, whichTime We need to modify a configuration, the Server.xml file under the Tomcat installation path confAdd and modify the following:After configuring the Tomcat service to restart, the browser types the localhost effect:After the successful external network mapping, the detection effect:The difference between intr
Today, the client told me that he had a server to send mail to the Domino server via SMTP, but his server could not access the Domino server's 25 port anyway, so let me go over there to help resolve the process Step One: Check 172.1.1.208 25
I. Problems Found
Info: Maximum number of threads (200) created for connector with address null and port 8080
The maximum number of threads is incorrect.Solution: Use a thread pool to process more requests with fewer threads, which can improve Tomcat's ability to process requests.
Ii. Usage
Open/CONF/server. xml and ad
If the port number of the website address is incorrect, enter the URL, for example, www.abc.com. the address bar immediately changes to www.abc.com: 81. what is the reason? the website is made in php. The space is interconnected with the new network, and the domain name is somewhere else. Is it because of space, program, or domain name? thank you !! ------ Solution -------------------- generally, the
Design the port communication server (iocp socket server)
(2) Memory Management (AWE)
Copyright 2009 Code client (LU yigui) All Rights Reserved
QQ: 48092788 source code blog: http://blog.csdn.net/guestcode
Some cool once said that the server is playing with memory. Think about it. The memory requirements of servers a
1. Introduction
For system security, it is sometimes necessary to modify the SSH default port. The modification method is as follows:
Vim/etc/ssh/sshd_configAdd two port
# $OpenBSD: sshd_config,v 1.69 2004/05/23 23:59:53 dtucker EXP $# This is the SSHD server system-wide configuration file. The# Sshd_config (5) for the more information.# This sshd is compiled wit
Although memcached load Linux more people, but still someone to load on windows, such as our company.Although the memcached default port number is good, but someone wants to change its port number, such as me.If you do not start memcached as a service, the MEMCACHED-P port
Number of Windows Scan Port links batch
Because we have a problem with the disconnected development of a program here, there are often thousands of links in the established state, but in fact these links should have been disconnected, when the link piled up to a certain extent, the server can not access the situation. That's why the following script was generate
Check port usage in linux:
1.
Check which process occupies port 819:
Case9-sghfofo:/usr/local/cnbj/tomcat-bj/bin # lsof-I: 859Result After running:COMMAND PID USER FD TYPE DEVICE SIZE NODE NAMEJava 24907 root 31u IPv4 248905027 TCP *: 859 (LISTEN)
From the above we know that port 859 is occupied by the process with process n
wm_user+101//Client message designator3.afx_msg LRESULT onservermessage (WPARAM wparam,lparam LPARAM) and On_message (ser_message,onservermessage):4. sock_addr.sin_addr. S_un. S_ADDR=INET_ADDR (Ipaddresstemp.getbuffer (0)); If you are communicating on your own computer, the IP must be native: Inet_addr ("192.168.1.106") or: Set the circuit of the cost to the machine 127.0.0.15. typedef clistIn C + +, CList is a template type name in the above type definition, which requires two placeholders: so
During web development, we need to change the Tomcat port number to conflict with other required ports.
Steps:
1. Find the conf folder under the Tomcat root directory
2. Find the server. xml file in the conf folder and open
3. Find the followingCode
Maxthreads = "150" connectiontimeout = "20000"Redirectport = "8443" type = "regxph" text = "yourobjectnam
MongoDB Series (ii): MongoDB replica setMongodb2.6 replica set validation deployment and certificationReplica sets have the following characteristics:1. The minimum composition is: Primary,secondary,arbiter, General deployment is: primary,2 secondary.2. The number of members should be odd, and if the addition of arbiter,arbiter for even cases does not save data, only votes.3. Max members, but only 7 voting members, others are non-voting members.Note:
Web site port number problem, ask enter the Web site, such as www.abc.com, the results of the address bar immediately turned into a http://www.abc.com: 81/excuse me what is this reason, the Web site is php do. The space is interconnected with the new network, and the domain name is somewhere else. Is it because of the space, the program, or the port
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.