Big Data learning fifth day
ulimit view the process to create the maximum number of file descriptors
-a all details
nginx_config documentation
#user nobody ngx_work owner of the process
worker_processes mononuclear number of processes
worker_connections maximum number of connections
nginx opened single-link descriptor bis least two open
sendfile file temporary storage memory function
Reduce the number of times a file copy
tcp_nopush buffer request data packet switch typically turned off engagement
Needs to be set to 0 keepalive_timeout reverse proxy connection hold time
gzip compression response
variable name {disposed upstream load balancing server outside the tag label http
server URL1 192.1638.1.133;
server URL2
}
service configuration
listen listening port number
server_name corresponding path
location{
root: / path
autoindex on the dynamic home page into a folder
Changes to the LAN to share files
proxy_pass URL Reverse Proxy
http: // variable name;
URI can not be added after the URL when using regular expressions
}
! Command shorthand (Initial) matches the most recent commands in the history command execution
history command history
Display and operation route IP routing table
scp copies Network
netstat -ntpl view the port number
Apache and nginx (web server)
1, more than one cluster machine processing a joint task.
2, a plurality of machine handle different tasks.
Features:
Static data processing speed number (html automatic cache static data) concurrent generally higher than the J2EE server
session: treatment
2, session sharing session require specialized management software, memcached caching service, and tomcat integration can help the tomcat shared management session.
Proxy design pattern :( Embedded Development)
Datasource:
Connection
Close()
Install memcached
1, install libevent
2, install memcached
3, start memcached
4, copy the jar to the lib tomcat
5, the configuration tomcat, tomcat inside each context.xml added:
<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
memcachedNodes="n1:192.168.197.128:11211"
sticky="false"
lockingMode="auto"
sessionBackupAsync="false"
requestUriIgnorePattern=".*.(ico|png|gif|jpg|css|js)$"
sessionBackupTimeout="1000" transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"