1.關機狀態下,按住Reset
2.接通電源,等待電源燈閃爍的時候,鬆開Reset
>3.通過TFPT傳送固件
/*! | |
* jQuery throttle / debounce - v1.1 - 3/7/2010 | |
* http://benalman.com/projects/jquery-throttle-debounce-plugin/ | |
* | |
* Copyright (c) 2010 "Cowboy" Ben Alman | |
* Dual licensed under the MIT and GPL licenses. | |
* http://benalman.com/about/license/ | |
*/ | |
// Script: jQuery throttle / debounce: Sometimes, less is more! |
# sniproxy example configuration file | |
# lines that start with # are comments | |
# lines with only white space are ignored | |
user daemon | |
# PID file | |
pidfile /var/run/sniproxy.pid | |
error_log { |
#!/bin/bash | |
# | |
# Author: yeho <lj2007331 AT gmail.com> | |
# Blog: http://blog.linuxeye.com | |
# | |
# Installs a PPTP VPN-only system for CentOS | |
# Check if user is root | |
[ $(id -u) != "0" ] && echo "Error: You must be root to run this script" && exit 1 |
因为centos软件仓库没有这货,所以先添加fedora官方源,否则无法通过yum安装transmission rpm -Uvh http://download.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-1.noarch.rpm rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
开始安装transmission
yum -y install transmission transmission-daemon
{ | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"tab_size": 4, | |
"theme": "Soda Dark 3.sublime-theme", | |
"word_wrap": false | |
} |
# 只支持新的TLS协议,旧的SSLv2、SSLv3协议有漏洞都不应该再使用 | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_session_cache shared:SSL:10m; | |
# 使用服务器握手密匙,密匙生成用以下命令 | |
# openssl dhparam -out dhparam.pem 4096 | |
# 生成4096位的密匙需要很长时间(数小时),但建议至少2048位 | |
ssl_dhparam /usr/local/nginx/conf/ssl/dhparam.pem; |
@echo off | |
setlocal enabledelayedexpansion | |
:: ******************************************************* | |
:: Get values from action | |
:: ******************************************************* | |
set REPOS=%1 | |
set TXN=%2 | |
:: ******************************************************* | |
:: If the file doesn't have the correct amount of |
fallocate -l 512M /var/swapfile | |
chmod 0600 /var/swapfile | |
mkswap /var/swapfile | |
swapon /var/swapfile | |
echo "/var/swapfile swap swap sw 0 0" >> /etc/fstab |
安装yum-utils: | |
yum install yum-utils开始清理: | |
清理不被当前系统任何软件所使用的依赖包(应多运行几次): | |
package-cleanup --leaves | |
清理当前软件仓库不再支持的孤儿包: | |
package-cleanup --orphans | |
清理旧内核: | |
package-cleanup --oldkernels | |
更多请man yum-utilsman package-cleanup | |
也可以利用yum插件删除依赖关系: |