各位哥哥姐姐,现在i5 7500金牌装机配置为什么不推荐i5 8400

检查Tomcat是否宕机_服务器应用_Linux公社-Linux系统门户网站
你好,游客
检查Tomcat是否宕机
来源:Linux社区&
作者:he-wen
某站点以java开发,运行在tomcat上,但因某些原因,java时不时假死或者自动停止。为了防止这个问题,临时采取定期检查该站点url的方式判断tomcat的运行情况。其基本思路为:当取得到带jsp后缀文件的url状态码不是200时,强制重启tomcat。用crond每隔一段时间执行一次检查。
脚本内容为:
#!/bin/bash &&
n=`curl&-I&-s&http:&&
if&[&$n&-ne&1&] &&
&&&source&/etc/profile &&
&&&/usr/local/tomcat_push/bin/catalina.sh&stop& &&
&&&/usr/local/tomcat_push/bin/catalina.sh&start &&
相关资讯 & & &
& (02月16日)
& (06/22/:21)
& (02月22日)
& (07/02/:29)
& (02/14/:24)
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款Nginx和tomcat无缝整合 - czllfy - ITeye技术网站
博客分类:
Nginx和tomcat无缝整合tomcat, Nginx, 无缝Nginx ("engine x") 是一个高性能的 HTTP 和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,它已经在该站点运行超过两年半了。 Igor 将源代码以类 BSD 许可证的形式发布。尽管还是测试版,但是,Nginx 已经因为它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名了。
选择Nginx主要考虑到搞并发和负载均衡。
设置192.168.1.10的hosts
vi /etc/hosts
192.168.1.10
test.192.168.1.10
一、Nginx安装
设置Nginx监听和Nginx安装目录 # wget
# tar zxvf nginx-0.6.36.tar.gz
# cd nginx-0.6.36
# ./configure --with-http_stub_status_module –prefix=/usr/local/nginx
# make install复制代码二、Nginx设置 #
worker_processes
#error_log
logs/error.
#error_log
logs/error.
logs/error.
logs/nginx.
worker_connections
default_type
application/octet-
#log_format
'$remote_addr - $remote_user [$time_local] $request '
'"$status" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
#access_log
logs/access.
#keepalive_timeout
keepalive_timeout
#upstream servers {
server 192.168.1.10:8080 weight=10;
server 192.168.1.101:8080 weight=1;
server_name test.;
#charset koi8-r;
charset utf-8;
#access_log
logs/host.access.
location / {
index.html index.htm index.
proxy_pass
#proxy_pass
#error_page
# redirect server error pages to the static page /50x.html
error_page
500 502 503 504
location = /50x.html {
location ~ ^/NginxStatus/ {
#location ~ \.(htm|html|gif|jpg|jpeg|png|bmp|ico|rar|css|js|zip|java|jar|txt|flv|swf|mid|doc|ppt|xls|pdf|txt|mp3|wma)$ {
root /usr/local/tomcat/webapps/
expires 24h;
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#location ~ \.jsp$ {
#proxy_pass
proxy_pass
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#location ~ \.php$ {
fastcgi_pass
127.0.0.1:9000;
fastcgi_index
fastcgi_param
SCRIPT_FILENAME
/scripts$fastcgi_script_
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#location ~ /\.ht {
# another virtual host using mix of IP-, name-, and port-based configuration
server_name
location / {
index.html index.
proxy_pass
location ~ \.(htm|html|gif|jpg|jpeg|png|bmp|ico|rar|css|js|zip|java|jar|txt|flv|swf|mid|doc|ppt|xls|pdf|txt|mp3|wma)$ {
root /usr/local/tomcat/webapps/
expires 24h;
server_name
ppsea.gicp.
location / {
index.html index.
proxy_pass
# HTTPS server
ssl_certificate
ssl_certificate_key
ssl_session_timeout
ssl_protocols
SSLv2 SSLv3 TLSv1;
ssl_ciphers
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_
location / {
index.html index.
}复制代码Tomcat使用8080端口,tomcat的server.xml的host中配置了2个域名test.和test.分别对应2个项目.使用浏览器访问test.进行测试,成功访问到tomcat,Nginx做了中转。
浏览: 83005 次
//事件绑定时,this指向的是当前对象
//事件触发时,th ...
给你弄错了,是这样的,你在div上面事件处理函数只能得到div ...
//alert(obj.m_Text);
alert(new
afcn0 写道#
function JSClass()nginx检测tomcat健康状态
我使用nginx upstream 代理两台tomcat,当我关闭一台tomcat1,nginx需要很差时间才能把请求发送到tomcat2,nginx哪个参数可以设置这个检测服务状态的时间啊?
怎么没人回........
请看 proxy.conf 的 proxy_connect_timeout
引用来自#3楼“红薯”的帖子
请看 proxy.conf 的 proxy_connect_timeout

我要回帖

更多关于 i5 7500装机教程 的文章

 

随机推荐