- 博客(15)
- 收藏
- 关注
原创 反向代理,负载均衡,高可用实现方法
全部服务器1,yum源先给3台电脑配好yum源然后用 yum clean yum list yum update 过一遍2,宝塔面板安装yum install wget -y && wget -O auto_disk.sh \ http://download.bt.cn/tools/auto_disk.sh && bas...
2018-06-02 15:18:47 630
原创 .net原生API接口
首先利用动软建立三层,using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace Model{ public class AjaxResult { /// <summary> /// 操作结果类型 /// <...
2018-06-02 15:13:25 899
原创 如何用timer实现DataGridView实时更新数据。
private void timer1_Tick(object sender, EventArgs e) { dataGridView1.DataSource = bll.GetModelList().Tables[0]; dataGridView1.Refresh(); }...
2019-01-03 15:12:20 3322 1
原创 .net winform app.config 配置文件
<?xml version="1.0" encoding="utf-8" ?><configuration> <appSettings> <!--连接字符串是否加密--> <add key="ConStringEncrypt" value="false"/>
2019-01-02 17:12:41 356
原创 服务器SQL server R2自动执行备份数据库
DECLARE @fileName nvarchar(100)SET @fileName='E:\DataBase_backup\pivot_full_back_' + REPLACE(REPLACE(REPLACE(REPLACE(CONVERT(VARCHAR(100), GETDATE(), 121), ' ', ''), ':', ''), '-', ''), '.', '') +...
2018-08-23 18:39:02 233
原创 何为烧伤(区块链)
A推荐了B,A投资了2000元,B投资了5000元,这时候A只能拿B,这5000元里面的2000额度,也就是2000,来进行推荐奖。正常情况下 ,A推荐了B,A投资5000,B投资2000,这时候A拿B的2000的推荐奖。反之则为烧伤。...
2018-08-21 14:57:32 6654
原创 代码里直接读取数据库字段,是怎样的原理。
像这种.cs文件里直接读取数据库字段的值,在这里,给大家说一下它是怎样的原理。int BuyPV = Convert.ToInt32(DssHelper.GetValueByApplicationString("System_Member_Level_PV", UserLevel));这是截取字符串的方法。public static string GetValueByApplicationStri...
2018-07-06 15:41:42 748
原创 日志分割,shell脚本
每个#/bin/bash开始的都要单独一个文件,名字随意#/bin/bash#这个只在部署nginx的服务器上编写bakpath='/home/nginx/logs'logpath='/usr/local/nginx/logs'mkdir -p $bakpath/$(date +%Y)/$(date +%m)mv $logpath/access.log $bakpath/$(date +%Y)/$...
2018-06-13 15:54:16 3963
原创 日志分割
日志分割每一台都需要做vi /etc/logrotate.conf # see "man logrotate" for details# rotate log files weeklymonthly # keep 4 weeks worth of backlogsrotate 4 # create new (empty) log files after rotating old onescrea...
2018-06-13 15:53:33 298
原创 .net 短信验证码
protected void Button1_Click(object sender, EventArgs e) { Random rd = new Random(); string yzm = rd.Next(1000, 10000).ToString(); UserHer.yzm = yzm; string content = ...
2018-06-07 15:03:26 1262
原创 Keepalived高可用配置文件
Keepalived部署到服务器上面时需要3个相同IP段的服务器,两台部署nginx+keepalived,其中一台的IP在keepalived的配置里填进虚拟IP(vip)里面主! Configuration File for keepalivedglobal_defs { notification_email { [email protected] }global_defs { not...
2018-06-07 14:41:15 247
原创 负载均衡nginx配置文件
user www www;worker_processes auto;error_log /www/wwwlogs/nginx_error.log crit;pid /www/server/nginx/logs/nginx.pid;worker_rlimit_nofile 51200;events { use epoll; worker_con...
2018-06-07 14:34:25 472
原创 keepalived脚本
#!/bin/sh # # keepalived High Availability monitor built upon LVS and VRRP # # chkconfig: - 86 14 # description: Robust keepalive facility to the Linux Virtual Server project \ # ...
2018-06-02 15:19:15 726
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人