the load. That is, the more requests are allocated to the node. The weight ratio of the above two nodes is, that is, the average distribution. The load formaldehyde settings can be adjusted according to the hardware performance of the node. ¥ When defining the port numbers of Tomcat 1 and tomcat 2, it must be the same as Tomcat's own Tomcat _home/CONF/server. the port numbers defined in the XML file are the same. Both 8180 and 8280 are modified from
Description:The referrer attribute of the Document Object. Return the URL of the webpage to which the hyperlink of the current webpage is located.
Example:1. The contents of a.html are as follows:2. The B .html file contains the following content:
3. The result displayed when the hyperlink B .html in a.html is passed:Http: // 127.0.0.1: 8180/a.html
Note:
Then, the value of document. referrer is an empty string.
the on disk cache to less than the tmpfs file system size
Proxy_cache_path./cache levels = keys_zone = pscms: 100 m max_size = 800 m;
Proxy_temp_path./proxy;
# Configure backend server information
Upstream web_server {
# Ip_hash;
Server localhost: 8080 max_fails = 3 fail_timeout = 30 s;
Server localhost: 8180 max_fails = 3 fail_timeout = 30 s;
}
Server {
Listen 8888; # Listen for IPv4
# Listen [:]: 80 default ipv6only = on
to the LAN, and the following is the NIC connected to the Internet. If you cannot find your NIC Driver in the drop-down list, you can click the select button next to it for detailed selection. Since the current Nic is generally a pci interface Nic, you do not need to select the IO address and interrupt number. After you select all, click next to continue. (See Figures 8 and 9)
(Figure 8)
(Figure 9)
8. Select a language. Generally, select chinese. If you think your English leve
offset value to 100 in the Standalone.xml, so the default port8080 becomes 8180.The deployed EJB service can be seen through the 127.0.0.1:10090 (port offset) Web URL.****************************************************************************Note that the whole process is prone to mistakes:1. Forget to add Jboss-client.jar to build path2. Jboss-ejb-client.properties configuration errors, such as IP, port, etc.3. Context.lookup The path is wrong, alt
1. Design a class (called a) that implements the addition of elements within a specified range of one-dimensional arrays. 1 ImportJava.util.Scanner;2 Public classA {3 Public Static voidMain (string[] args) {4 int[] AA = {-2574,-4010, 8243, 771, 2447,-5197, 2556, 8044, 3314,53617, 6065,-2817, 3131, 6318, 2186,-113, 629,-2582, 37,6-1520, 164, 2055,-5936, 5912, 1717, 5988, 4781, 5757, 892,7-4394, 8034, 2213,-1080,-2080, 5364, 106, 2657, 566, 3940,8-5116, 4583, 1806, 6555, 2621,-7197
\etc\hosts @see Test * @see 127.0.0.1 sso.jadyer.com * @see 127.0.0.1 boss.jadyer.com * @see 127.0.0.1 risk.jadyer.com * @see---------------------------------------------------- --------------------------------------------------------------------* @see then copy three Tomcat, respectively, as SSO server and two SSO client * @see Modify the following three ports on the \tomcat\conf\server.xml of the two SSO clients to ensure that the boot listener port is not duplicated * @see Start testing nowFi
zone name# Set the maximum size of the on disk cache to less than the tmpfs file system sizeProxy_cache_path./cache levels = keys_zone = pscms: 100 m max_size = 800 m;Proxy_temp_path./proxy;# Configure backend server informationUpstream web_server {# Ip_hash;Server localhost: 8080 max_fails = 3 fail_timeout = 30 s;Server localhost: 8180 max_fails = 3 fail_timeout = 30 s;}Server {Listen 8888; # listen for ipv4# Listen [:]: 80 default ipv6only = on; #
. Currently, we can solve this problem in two ways:
Method 1: disable anti-virus software. Disabling anti-virus software can alleviate this problem to some extent, but this method is not recommended for system security.
Method 2: Modify the tcpip. SYS file. We use winhex (it is: http://js-http.skycn.net: 8180/down/ha_whex11_2sr1_zq.rar) to complete the modification, the specific method is as follows: first, the c: \ windows \ system32 \ DRIVERS dir
is necessary. it will be installed later.
Make install clean
Installed successfully
Correct the configuration file httpd. conf.
In rc. conf, add apache2_enable = 'yes'
/Usr/local/etc/rc. d/apache2.sh start
If it is started successfully
3. PHP
Cd/usr/ports/www/mod_php5
Make install clean
Select the one with apache or something during installation.
After installation, add the last loadmodule in httpd. conf to the php # file.
Addtype row participation. php. phps
Write a phpinfo () and test it.
4.
1. FTP login ftp.freebsdchina.org/pub/freebsd/ports/ I #/packages-6.3-release/www download apache-tomcat-6.0.14.tbz
2. install Tomcat... pkg_add apache-tomcat-6.0.14.tbz
3. in the basic system of the FreeBSD environment, two shells can be used: SH and CSH. Sh is "$" and CSH is "%". If the root user is used, the logon prompt will be "#". when logging on to the system, SH will first execute the/etc/profile file to set the most basic environment for each user, and CSH will use/etc/CSH. cshrc, CSH
used as the benchmark in the gdt table is 13 BITs, so there can be 8192 descriptions in the gdt table. Except for some system overhead (for example, 2nd items and 3rd items in gdt are used for KernelCodeSegment and Data Segment, 4th and 5th items are always used for the code segment and data segment of the current process, 1st items are always 0, and so on), there are still 8180 table items available, therefore, theoretically, the maximum number of p
configuration file. But I'm not using this configuration file here, look at the startup script[Email protected] configuration]# cat/opt/jboss-eap-6.2/myrun_monitor.shExport Java_home= "/opt/jdk1.6.0_25"Export java_opts= "-xms2048m-xmx2048m-xx:+useparallelgc-xx:maxpermsize=512m-djava.awt.headless=true-dorg.jboss.resolver.warning=true-xx:+heapdumponoutofmemoryerror-djava.security.egd=file:///dev/urandom.-dsun.rmi.dgc.client.gcinterval=3600000-dsun.rmi.dgc.server.gcinterval=3600000-dsun.lang.class
inside the mod_jk.conf) jklogfile logs/Mod_jk_shanhyweb.log #指URL指向如果有servlet, let Worker_web to deal with Jkmount/servlet/* Worker_web #指URL为/*.jsp page, let Worker_web to handle Jkmount/*.jsp Worker_web #指 URL for/*.do page, let Worker_web to handle Jkmount/*.do worker_web #指URL为/*.json page, let Worker_web to deal with Jkmount/*.json worker_web Static resource directory for Web and WAP in config file/svcroot/runtime/webstatic/shanhyweb and/svcroot/runtime/webstatic/shanhywap
worker.controller.balanced_workers=tomcat1,t OMCAT2 #指定分担请求的tomcat worker.controller.sticky_session=1 5. Modify the Tomcat configuration file Server.xml If you are a horizontal cluster, that is, install Tomcat,tomcat on different PCs with a number of installs, you can avoid having to modify the Tomcat configuration file. I am here to install two Tomcat on the same computer, to achieve a vertical cluster mode, so you must modify one of the settings to avoid port conflicts, according to the
/cygdriver to Access Windows files, but I do not know the effect of using this path in the absence of a complete Cygwin environment. (I should have tried it, but I forgot ......). Put ssh.exeand autossh.exe in the same directory, and specify the following environment variables in the command line window to solve this problem:
set AUTOSSH_PATH=./ssh.exe
Then you can use AutoSSH normally. In addition, in some cases, AutoSSH will automatically exit, so an endless loop is still needed for continuous
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.