月度归档:2016年12月

WPS 政府版序列号

序列号 THUV2-32HH7-6NMHN-PTX7Y-QQCTH
感谢为人民服务的昔阳县政府。
http://www.xiyang.gov.cn/xiyang/tongzhigonggao/20141106/12407.html(原帖已经被删)

附:WPS Pro 2016 下载地址
组合装(无VBA):http://kad.www.wps.cn/wps/download/ep/WPS2016ProSuite_normal.exe
WPS Pro(无VBA):http://kad.www.wps.cn/wps/download/ep/WPS2016Pro_normal.exe
WPS Plus(带VBA):http://kad.www.wps.cn/wps/download/ep/WPS2016ProPlus_normal.exe

centos6/7 安装Transmission

yum -y install transmission transmission-daemon

systemctl start transmission-daemon
systemctl stop transmission-daemon
systemctl enable transmission-daemon.service

#创建transmission储存目录并赋予相关权限

mkdir -p /dev/mapper/data/pt/
chown -R transmission:transmission /dev/mapper/data/pt/
chmod g+w /dev/mapper/data/pt/

#配置transmission的settings.json
nano /var/lib/transmission/.config/transmission-daemon/settings.json

#修改如下四个为你想要的内容
“rpc-authentication-required”: true, #默认是false, 改为true即可
“rpc-password”: “123”, #写进去之后重启transmission他会自动转换为一串字母
“rpc-username”: “ylx”, #默认是”空的”
“rpc-whitelist-enabled”: false, #默认是true, 改为false即可
#启动transmission

systemctl start transmission-daemon

wget https://github.com/ronggang/transmission-web-control/raw/master/release/tr-control-easy-install.sh
sh tr-control-easy-install.sh

centos6

cd /etc/yum.repos.d/

CentOS 6 x86

wget http://geekery.altervista.org/geekery-el6-i686.repo

CentOS 6 x86_64

wget http://geekery.altervista.org/geekery-el6-x86_64.repo

yum install tranmission transmission-daemon --nogpgcheck service transmission-daemon start service transmission-daemon stop mkdir -p /home/transmission nano /var/lib/transmission/settings.json #同上 service transmission-daemon start wget https://github.com/ronggang/transmission-web-control/raw/master/release/tr-control-easy-install.sh sh tr-control-easy-install.sh #添加坚守进程 crontab -e */30 * * * * sh /root/tr.sh #! /bin/sh proc_name="transmission-daemon"        #进程名      proc_num()                     #查询进程数量   { num=`ps -ef | grep $proc_name | grep -v grep | wc -l`   return $num   } proc_num     number=$?                      #获取进程数量   if [ $number -eq 0 ]            #如果进程数量为0   then                            #重新启动服务器,或者扩展其它内容。   service transmission-daemon start fi

2019.1.22

centos6 openvz

cd /etc/yum.repos.d/  
wget http://geekery.altervista.org/geekery-el6-i686.repo
yum install tranmission transmission-daemon --nogpgcheck -y
wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh --no-check-certificate
wget -N https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh --no-check-certificate
chmod +x install-tr-control-cn.sh
bash install-tr-control-cn.sh

nginx 屏蔽不需要的索引机器人

cd /etc/nginx/conf
touch agent_deny.conf
nano agent_deny.conf

填上
#禁止Scrapy等工具的抓取
if ($http_user_agent ~* (Scrapy|Curl|HttpClient)) {
     return 403;
}
#禁止指定UA及UA为空的访问
if ($http_user_agent ~ "FeedDemon|Indy Library|Alexa Toolbar|AskTbFXTV|AhrefsBot|CrawlDaddy|CoolpadWebkit|Java|Feedly|UniversalFeedParser|ApacheBench|Microsoft URL Control|Swiftbot|ZmEu|oBot|jaunty|Python-urllib|lightDeckReports Bot|YYSpider|DigExt|HttpClient|MJ12bot|heritrix|EasouSpider|Ezooms|^$" ) {
     return 403;             
}
#禁止非GET|HEAD|POST方式的抓取
if ($request_method !~ ^(GET|HEAD|POST)$) {
    return 403;
}

然后在主机中的插入
include /etc/nginx/conf/agent_deny.conf;

centos7 折腾记

yum install epel-release -y
yum install screen nano unzip htop net-tools wget psmisc -y  systemctl stop firewalld.service
systemctl disable firewalld.service

yum install iptables iptables-services -y

systemctl enable iptables.service
systemctl start iptables.service

数据区:
mkfs.ext3 /dev/vdb
mkdir /dev/mapper/data
mount /dev/vdb /dev/mapper/data
/dev/vdb /dev/mapper/data ext3 defaults 1 1

修复exim发件问题

关闭ipv6地址

nano /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

sysctl -p

清理发件队列

find /var/spool/exim/input/ -type f -name '*' -print0 | xargs -0 rm &

nano /etc/exim/exim.conf
primary_hostname = 162.220.14.10.lg.ylx.me
domainlist local_domains = @ : localhost : localhost.localdomain : 162.220.14.10.lg.ylx.me
domainlist relay_to_domains = *
hostlist   relay_from_hosts = 162.220.14.10 

重启

service exim restart

从黑名单中去除

http://cbl.abuseat.org/lookup.cgi
http://www.spamhaus.org
分别查询

参考http://www.voidcn.com/blog/hhuahuanghao/article/p-1218020.html

https://www.spamhaus.org/lookup/  邮箱填域名邮箱

centos7 更换内核安装锐速开心版

更换内核

rpm -ivh http://linuxsoft.cern.ch/cern/centos/7/updates/x86_64/Packages/kernel-3.10.0-229.1.2.el7.x86_64.rpm --force

设置我们要的内核启动(只有在升级了内核时才需要)

grub2-set-default "CentOS Linux (3.10.0-229.1.2.el7.x86_64) 7 (Core)"

禁止更新内核

yum install -y nano
nano
#[main]最后面加入
exclude=kernel*
exclude=centos-release*
#Ctrl+X退出并按提示保存

剩下的91什么的,选择匹配低的


查看状态

/serverspeeder/bin/serverSpeeder.sh status

tso、gso、gro、lro状态

ethtool -k eth0

查看私密文章,配置 后重启

 service serverSpeeder restart