问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

eq5045xxytbev3是多少度电

发布网友 发布时间:2022-05-01 14:49

我来回答

1个回答

热心网友 时间:2023-10-20 01:07

Nginx-Keepalived一键安装脚本001#!/bin/bash002################################003yum install openssl-devel popt-devel gcc pcre-devel -y004groupadd www005useradd -g www www006cd /tmp007##############pcre#####################008tar -xvf pcre*009if [ $? -eq 0 ];then010 echo pcre tar ok011else012 echo pcre tar no013 exit014fi015016cd /tmp/pcre-*017./configure018 if [ $? -eq 0 ];then019 make && make install020 if [ $? -eq 0 ];then021 echo pcre ok022 else023 echo pcre no024 fi025 else026 echo pcre configure no027 fi028#############nginx######################029nginx_dir=/usr/local/nginx030nginx_conf=/usr/local/nginx/conf/nginx.conf031cd /tmp032tar -xvf nginx-*.tar.*033if [ $? -eq 0 ];then034 echo nginx tar ok035else036 echo nginx tar no037 exit038fi039cd /tmp/nginx*040./configure --user=www --group=www --prefix=$nginx_dir --with-http_stub_status_mole --with-http_ssl_mole041 if [ $? -eq 0 ];then042 make && make install043 if [ $? -eq 0 ];then044 sleep 5045 echo nginx make ok046 else047 echo nginx no048 fi049 else050 echo nginx configure no051 fi052cd $nginx_dir053 if [ ! -f $nginx_conf ];then054 touch $nginx_dir/conf/nginx.conf055 fi056######################nginx.conf####################057echo -e user www www;/nworker_processes 8;/npid /usr/local/nginx/logs/nginx.pid;/nworker_rlimit_nofile 51200;/nevents/n}/nuse epoll;/nworker_connections 51200;/n} > $nginx_conf058059echo -e http{/ninclude/tmime.types;/ndefault_type application/octet-stream;/nserver_names_hash_bucket_size 128;/nclient_header_buffer_size 32k;/nlarge_client_header_buffers 4 32k;/nclient_max_body_size 8m;/nsendfile on;/ntcp_nopush060on;/nkeepalive_timeout 60; >> $nginx_conf061062echo -e tcp_nodelay on;/nfastcgi_connect_timeout 300;/nfastcgi_send_timeout 300;/nfastcgi_read_timeout 300;/nfastcgi_buffer_size 64k;/nfastcgi_buffers 4 64k;/nfastcgi_busy_buffers_size 128k;/nfastcgi_temp_file_write_size 128k;/n >> $nginx_conf063064echo -e gzip on;/ngzip_min_length 1k;/ngzip_buffers 4 16k;/ngzip_http_version 1.0;/ngzip_comp_level 2;/ngzip_types text/plain application/x-javascript text/css application/xml;/ngzip_vary on/nupstream backend/n{ip_hash; >> $nginx_conf065066read -p Requires several server server067for ((a=1;a<=$server;a++))068do069read -p server ip address ip070echo -e server $ip:80; >> $nginx_conf071done072073echo -e } >> $nginx_conf074075echo -e 'log_format access $remote_addr - $remote_user [$time_local] $request/n$status $body_bytes_sent $http_referer/n$http_user_agent $http_x_forwarded_for;' >> $nginx_conf076077echo -e server {/nlisten 80;/nlocation / {/nroot /usr/local/tdoa/nginx/html ;/nindex index.php index.htm index.html;/nproxy_redirect off;/nproxy_set_header Host $host;/nproxy_set_header X-Real-IP $remote_addr;/nproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;/nproxy_pass http://backend;/n} >> $nginx_conf078079echo -e location /nginx {/naccess_log off;/nauth_basic NginxStatus;/n#auth_basic_user_file /usr/local/nginx/htpasswd;/n}/naccess_log /var/log/access.log access;/n}/n} >> $nginx_conf080###########################keepalived#################################081###########################keepalived###############################082mandir=/usr/local/src/man083kernel=$(uname -r)084keepalived_conf=/etc/keepalived/keepalived.conf085################################086cd /tmp087tar -xvf keepalived*.tar.gz088cd /tmp/keepalived-*089#############keepalived make##################090./configure --prefix=/ --mandir=$mandir --with-kernel-dir=/usr/src/kernels/$kernel*091 if [ $? -eq 0 ];then092 make093 if [ $? -eq 0 ];then094 make install095 if [ $? -eq 0 ];then096 echo keepalived ok097 else098 echo keepalived no099 exit100 fi101 else102 echo keeplaived make no103 exit104 fi105 else106 echo keelalived make no107 fi108109touch /etc/keepalived/keepalived.conf110#######################keepalived.conf###################111read -p $read_p NIC binding network112####################keepalived.conf#####################113#############Global configuration#######################114echo -e ! Configuration File for keepalived/nglobal_defs {/n/tnotification_email {/n/tjqbash@gmail.com/n/t}/n/tnotification_email_from root@localhost/n/tsmtp_server 127.0.0.1/n/tsmtp_connect_timeout 30/n/trouter_id Nginx-Keepalived/n} > $keepalived_conf115############Virtual IP Configuration####################116read -p Requires several server server117for ((a=1;a<=$server;a++))118do119read -p MASTER of BACKUP states120read -p priority priority121read -p virtual router id id122read -p vip address vip123echo -e vrrp_instance VI_$a {/n/tstate $states/n/tinterface $network/n/tvirtual_router_id $id/n/t priority $priority/n/tadvert_int 1/n/tauthentication {/n/tauth_type PASS/n/tauth_pass tdoa/n/t}/n/tvirtual_ipaddress {/n/t$vip/24 dev $network/n/t}/n} >> $keepalived_conf124done125###########################Nginx.sh###############################126touch /etc/rc.d/haproxy-keepalived.sh127echo -e '#!/bin/bash/nwhile/t:/ndo/n nginxid=`ps -C nginx --no-header | wc -l`/n/tif [ $nginxid -eq 0 ];then/n/t/tusr/local/src/nginx/sbin/nginx/n/t/tsleep 5/n/tnginxid=`ps -C nginx --no-header | wc -l`/n/t/tif [ nginxid -eq 0 ];then/n/t/t/t/t/etc/init.d/keepalived stop/n/t/tfi/n/tfi/n/tsleep 5/n nginxid=`ps -C nginx --no-header | wc -l`/n/tif (($nginxid!= 0));then/n/t/t/etc/init.d/keepalived start/n/tfi/n/tsleep 5/ndone' > /usr/local/nginx/nginx.sh128####################################################################129nohup sh /usr/local/nginx/nginx.sh &130/usr/local/nginx/sbin/nginx131/etc/init.d/keepalived restart132echo nohup sh /usr/local/nginx/nginx.sh & >> /etc/rc.local133echo /usr/local/nginx/sbin/nginx >> /etc/rc.local134echo /etc/init.d/keepalived restart /etc/rc.lcoal

热心网友 时间:2023-10-20 01:07

Nginx-Keepalived一键安装脚本001#!/bin/bash002################################003yum install openssl-devel popt-devel gcc pcre-devel -y004groupadd www005useradd -g www www006cd /tmp007##############pcre#####################008tar -xvf pcre*009if [ $? -eq 0 ];then010 echo pcre tar ok011else012 echo pcre tar no013 exit014fi015016cd /tmp/pcre-*017./configure018 if [ $? -eq 0 ];then019 make && make install020 if [ $? -eq 0 ];then021 echo pcre ok022 else023 echo pcre no024 fi025 else026 echo pcre configure no027 fi028#############nginx######################029nginx_dir=/usr/local/nginx030nginx_conf=/usr/local/nginx/conf/nginx.conf031cd /tmp032tar -xvf nginx-*.tar.*033if [ $? -eq 0 ];then034 echo nginx tar ok035else036 echo nginx tar no037 exit038fi039cd /tmp/nginx*040./configure --user=www --group=www --prefix=$nginx_dir --with-http_stub_status_mole --with-http_ssl_mole041 if [ $? -eq 0 ];then042 make && make install043 if [ $? -eq 0 ];then044 sleep 5045 echo nginx make ok046 else047 echo nginx no048 fi049 else050 echo nginx configure no051 fi052cd $nginx_dir053 if [ ! -f $nginx_conf ];then054 touch $nginx_dir/conf/nginx.conf055 fi056######################nginx.conf####################057echo -e user www www;/nworker_processes 8;/npid /usr/local/nginx/logs/nginx.pid;/nworker_rlimit_nofile 51200;/nevents/n}/nuse epoll;/nworker_connections 51200;/n} > $nginx_conf058059echo -e http{/ninclude/tmime.types;/ndefault_type application/octet-stream;/nserver_names_hash_bucket_size 128;/nclient_header_buffer_size 32k;/nlarge_client_header_buffers 4 32k;/nclient_max_body_size 8m;/nsendfile on;/ntcp_nopush060on;/nkeepalive_timeout 60; >> $nginx_conf061062echo -e tcp_nodelay on;/nfastcgi_connect_timeout 300;/nfastcgi_send_timeout 300;/nfastcgi_read_timeout 300;/nfastcgi_buffer_size 64k;/nfastcgi_buffers 4 64k;/nfastcgi_busy_buffers_size 128k;/nfastcgi_temp_file_write_size 128k;/n >> $nginx_conf063064echo -e gzip on;/ngzip_min_length 1k;/ngzip_buffers 4 16k;/ngzip_http_version 1.0;/ngzip_comp_level 2;/ngzip_types text/plain application/x-javascript text/css application/xml;/ngzip_vary on/nupstream backend/n{ip_hash; >> $nginx_conf065066read -p Requires several server server067for ((a=1;a<=$server;a++))068do069read -p server ip address ip070echo -e server $ip:80; >> $nginx_conf071done072073echo -e } >> $nginx_conf074075echo -e 'log_format access $remote_addr - $remote_user [$time_local] $request/n$status $body_bytes_sent $http_referer/n$http_user_agent $http_x_forwarded_for;' >> $nginx_conf076077echo -e server {/nlisten 80;/nlocation / {/nroot /usr/local/tdoa/nginx/html ;/nindex index.php index.htm index.html;/nproxy_redirect off;/nproxy_set_header Host $host;/nproxy_set_header X-Real-IP $remote_addr;/nproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;/nproxy_pass http://backend;/n} >> $nginx_conf078079echo -e location /nginx {/naccess_log off;/nauth_basic NginxStatus;/n#auth_basic_user_file /usr/local/nginx/htpasswd;/n}/naccess_log /var/log/access.log access;/n}/n} >> $nginx_conf080###########################keepalived#################################081###########################keepalived###############################082mandir=/usr/local/src/man083kernel=$(uname -r)084keepalived_conf=/etc/keepalived/keepalived.conf085################################086cd /tmp087tar -xvf keepalived*.tar.gz088cd /tmp/keepalived-*089#############keepalived make##################090./configure --prefix=/ --mandir=$mandir --with-kernel-dir=/usr/src/kernels/$kernel*091 if [ $? -eq 0 ];then092 make093 if [ $? -eq 0 ];then094 make install095 if [ $? -eq 0 ];then096 echo keepalived ok097 else098 echo keepalived no099 exit100 fi101 else102 echo keeplaived make no103 exit104 fi105 else106 echo keelalived make no107 fi108109touch /etc/keepalived/keepalived.conf110#######################keepalived.conf###################111read -p $read_p NIC binding network112####################keepalived.conf#####################113#############Global configuration#######################114echo -e ! Configuration File for keepalived/nglobal_defs {/n/tnotification_email {/n/tjqbash@gmail.com/n/t}/n/tnotification_email_from root@localhost/n/tsmtp_server 127.0.0.1/n/tsmtp_connect_timeout 30/n/trouter_id Nginx-Keepalived/n} > $keepalived_conf115############Virtual IP Configuration####################116read -p Requires several server server117for ((a=1;a<=$server;a++))118do119read -p MASTER of BACKUP states120read -p priority priority121read -p virtual router id id122read -p vip address vip123echo -e vrrp_instance VI_$a {/n/tstate $states/n/tinterface $network/n/tvirtual_router_id $id/n/t priority $priority/n/tadvert_int 1/n/tauthentication {/n/tauth_type PASS/n/tauth_pass tdoa/n/t}/n/tvirtual_ipaddress {/n/t$vip/24 dev $network/n/t}/n} >> $keepalived_conf124done125###########################Nginx.sh###############################126touch /etc/rc.d/haproxy-keepalived.sh127echo -e '#!/bin/bash/nwhile/t:/ndo/n nginxid=`ps -C nginx --no-header | wc -l`/n/tif [ $nginxid -eq 0 ];then/n/t/tusr/local/src/nginx/sbin/nginx/n/t/tsleep 5/n/tnginxid=`ps -C nginx --no-header | wc -l`/n/t/tif [ nginxid -eq 0 ];then/n/t/t/t/t/etc/init.d/keepalived stop/n/t/tfi/n/tfi/n/tsleep 5/n nginxid=`ps -C nginx --no-header | wc -l`/n/tif (($nginxid!= 0));then/n/t/t/etc/init.d/keepalived start/n/tfi/n/tsleep 5/ndone' > /usr/local/nginx/nginx.sh128####################################################################129nohup sh /usr/local/nginx/nginx.sh &130/usr/local/nginx/sbin/nginx131/etc/init.d/keepalived restart132echo nohup sh /usr/local/nginx/nginx.sh & >> /etc/rc.local133echo /usr/local/nginx/sbin/nginx >> /etc/rc.local134echo /etc/init.d/keepalived restart /etc/rc.lcoal

热心网友 时间:2023-10-20 01:07

Nginx-Keepalived一键安装脚本001#!/bin/bash002################################003yum install openssl-devel popt-devel gcc pcre-devel -y004groupadd www005useradd -g www www006cd /tmp007##############pcre#####################008tar -xvf pcre*009if [ $? -eq 0 ];then010 echo pcre tar ok011else012 echo pcre tar no013 exit014fi015016cd /tmp/pcre-*017./configure018 if [ $? -eq 0 ];then019 make && make install020 if [ $? -eq 0 ];then021 echo pcre ok022 else023 echo pcre no024 fi025 else026 echo pcre configure no027 fi028#############nginx######################029nginx_dir=/usr/local/nginx030nginx_conf=/usr/local/nginx/conf/nginx.conf031cd /tmp032tar -xvf nginx-*.tar.*033if [ $? -eq 0 ];then034 echo nginx tar ok035else036 echo nginx tar no037 exit038fi039cd /tmp/nginx*040./configure --user=www --group=www --prefix=$nginx_dir --with-http_stub_status_mole --with-http_ssl_mole041 if [ $? -eq 0 ];then042 make && make install043 if [ $? -eq 0 ];then044 sleep 5045 echo nginx make ok046 else047 echo nginx no048 fi049 else050 echo nginx configure no051 fi052cd $nginx_dir053 if [ ! -f $nginx_conf ];then054 touch $nginx_dir/conf/nginx.conf055 fi056######################nginx.conf####################057echo -e user www www;/nworker_processes 8;/npid /usr/local/nginx/logs/nginx.pid;/nworker_rlimit_nofile 51200;/nevents/n}/nuse epoll;/nworker_connections 51200;/n} > $nginx_conf058059echo -e http{/ninclude/tmime.types;/ndefault_type application/octet-stream;/nserver_names_hash_bucket_size 128;/nclient_header_buffer_size 32k;/nlarge_client_header_buffers 4 32k;/nclient_max_body_size 8m;/nsendfile on;/ntcp_nopush060on;/nkeepalive_timeout 60; >> $nginx_conf061062echo -e tcp_nodelay on;/nfastcgi_connect_timeout 300;/nfastcgi_send_timeout 300;/nfastcgi_read_timeout 300;/nfastcgi_buffer_size 64k;/nfastcgi_buffers 4 64k;/nfastcgi_busy_buffers_size 128k;/nfastcgi_temp_file_write_size 128k;/n >> $nginx_conf063064echo -e gzip on;/ngzip_min_length 1k;/ngzip_buffers 4 16k;/ngzip_http_version 1.0;/ngzip_comp_level 2;/ngzip_types text/plain application/x-javascript text/css application/xml;/ngzip_vary on/nupstream backend/n{ip_hash; >> $nginx_conf065066read -p Requires several server server067for ((a=1;a<=$server;a++))068do069read -p server ip address ip070echo -e server $ip:80; >> $nginx_conf071done072073echo -e } >> $nginx_conf074075echo -e 'log_format access $remote_addr - $remote_user [$time_local] $request/n$status $body_bytes_sent $http_referer/n$http_user_agent $http_x_forwarded_for;' >> $nginx_conf076077echo -e server {/nlisten 80;/nlocation / {/nroot /usr/local/tdoa/nginx/html ;/nindex index.php index.htm index.html;/nproxy_redirect off;/nproxy_set_header Host $host;/nproxy_set_header X-Real-IP $remote_addr;/nproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;/nproxy_pass http://backend;/n} >> $nginx_conf078079echo -e location /nginx {/naccess_log off;/nauth_basic NginxStatus;/n#auth_basic_user_file /usr/local/nginx/htpasswd;/n}/naccess_log /var/log/access.log access;/n}/n} >> $nginx_conf080###########################keepalived#################################081###########################keepalived###############################082mandir=/usr/local/src/man083kernel=$(uname -r)084keepalived_conf=/etc/keepalived/keepalived.conf085################################086cd /tmp087tar -xvf keepalived*.tar.gz088cd /tmp/keepalived-*089#############keepalived make##################090./configure --prefix=/ --mandir=$mandir --with-kernel-dir=/usr/src/kernels/$kernel*091 if [ $? -eq 0 ];then092 make093 if [ $? -eq 0 ];then094 make install095 if [ $? -eq 0 ];then096 echo keepalived ok097 else098 echo keepalived no099 exit100 fi101 else102 echo keeplaived make no103 exit104 fi105 else106 echo keelalived make no107 fi108109touch /etc/keepalived/keepalived.conf110#######################keepalived.conf###################111read -p $read_p NIC binding network112####################keepalived.conf#####################113#############Global configuration#######################114echo -e ! Configuration File for keepalived/nglobal_defs {/n/tnotification_email {/n/tjqbash@gmail.com/n/t}/n/tnotification_email_from root@localhost/n/tsmtp_server 127.0.0.1/n/tsmtp_connect_timeout 30/n/trouter_id Nginx-Keepalived/n} > $keepalived_conf115############Virtual IP Configuration####################116read -p Requires several server server117for ((a=1;a<=$server;a++))118do119read -p MASTER of BACKUP states120read -p priority priority121read -p virtual router id id122read -p vip address vip123echo -e vrrp_instance VI_$a {/n/tstate $states/n/tinterface $network/n/tvirtual_router_id $id/n/t priority $priority/n/tadvert_int 1/n/tauthentication {/n/tauth_type PASS/n/tauth_pass tdoa/n/t}/n/tvirtual_ipaddress {/n/t$vip/24 dev $network/n/t}/n} >> $keepalived_conf124done125###########################Nginx.sh###############################126touch /etc/rc.d/haproxy-keepalived.sh127echo -e '#!/bin/bash/nwhile/t:/ndo/n nginxid=`ps -C nginx --no-header | wc -l`/n/tif [ $nginxid -eq 0 ];then/n/t/tusr/local/src/nginx/sbin/nginx/n/t/tsleep 5/n/tnginxid=`ps -C nginx --no-header | wc -l`/n/t/tif [ nginxid -eq 0 ];then/n/t/t/t/t/etc/init.d/keepalived stop/n/t/tfi/n/tfi/n/tsleep 5/n nginxid=`ps -C nginx --no-header | wc -l`/n/tif (($nginxid!= 0));then/n/t/t/etc/init.d/keepalived start/n/tfi/n/tsleep 5/ndone' > /usr/local/nginx/nginx.sh128####################################################################129nohup sh /usr/local/nginx/nginx.sh &130/usr/local/nginx/sbin/nginx131/etc/init.d/keepalived restart132echo nohup sh /usr/local/nginx/nginx.sh & >> /etc/rc.local133echo /usr/local/nginx/sbin/nginx >> /etc/rc.local134echo /etc/init.d/keepalived restart /etc/rc.lcoal
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
悲观的意思是什么悲观是什么意思 ...坐立不安的。还总想挠挠手呀、胳膊什么的。这是怎么回事啊?是一种... ...胳膊肘麻,有时会麻到感觉大拇指根部疼,食指也有点... ...入睡感觉左胳膊从手腕到肩膀酥溜溜的酸,睁开眼又好了,什么原因... 胳膊上麻溜溜的 像是有小疙瘩 还很痒 有点硬 少量蔗糖,食盐,食油,食醋分别倒入一定量水中,并用筷子不断搅拌,观察... 将食盐 蔗糖 泥土 植物油与水混合 英文会计的provision对应中文会计的哪个词啊? 双人旁一个直一个心念什么,什么意思 白瓷有隙是成语吗 请问七台河到哈尔滨火车还在运行吗? 怎样才能在登录QQ后不显示腾讯网迷你首页 黑龙江七台河到山东青岛火车,怎么坐车方便,时间,价格, 这样去掉腾讯网不停地弹出的腾讯网迷你首页? 已经连上wi-fi 怎样查看wifi密码 哈尔滨到七台河坐火车最快多长时间? 关于字符串 坐早七点多七台河到哈尔滨火车再到大庆怎么衔接 男人爱上一个女人的时候,会有哪些深情的表现? 数码相机里的照片被不小心格式化了,用数据恢复软件找回后变成了FIL01。 JPG文件了,打不开怎么办啊? 七台河到哈尔滨高铁多久通车 男人真正爱上一个女人时,会有哪些表现? QQ腾讯网怎么不弹出来??? 中年男人爱上一个女人的表现 如何可以上Q不自动弹出腾讯迷你网 男人打心底喜欢上一个女人时,才会有哪些表现,不爱根本装不出来? 谁能告诉我七台河到哈尔滨的火车有没有上午的? SAP 连续打印凭证 维吾尔族古尔帮节 SAP query名称怎么查看? 今天七台河到哈尔滨火车票还有硬卧么 今年FI的具体赛程 七台河到哈尔滨的汽车都有几点的?大约走多长时间? 插入多条记录到数据库表要怎么写? 普通人考北电需要什么条件? 考北电的要求和条件? 考取北京电影学院的要求是什么? 考北影需要什么条件? 五四青年节是男人的节日吗? oracle dblink支持哪些数据库 如何在手机上看自己的光头 华为的海思处理器和麒麟处理器是同一款吗? 什么软件能把人P成光头 海思麒麟天玑联发科有啥区别? 求p个图,p成光头,我就是想看看自己秃头时候的样子 天天p图把自己p成光头如何自嘲 天气很好但是心情不好的说说 本人照片、求P光头、囚服!换背景!愚人节用! 形容天气好心情不好的句子 记忆力专注力下降如何快速恢复?