Category Archives: Linux
← Continue Reading
1. 开机启动nginx:
在 /Library/LaunchDaemons/ 目录新建 org.macports.nginx.plist 文件:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTD...
← Continue Reading
[转载自:yepyang的ChinaUnix博客]
TLB:Translation Lookaside Buffer.
根据功能可以译为快表,直译可以翻译为旁路转换缓冲,也可以把它理解成页表缓冲。里面存放的是一些页表文件(虚拟地址到物理地址的转换表)。当处理 器要在主内存寻址时,不是直接在内存的物理地址里查找的,而是通过一组虚拟地址转换到主内存的物理地址,TLB就是负责将虚拟内存地址翻译成实际的物...
← Continue Reading
手编本:
github远程仓库
1.github新建项目ABC
2.ssh-keygen -t rsa -C *20**@qq.com"
3.1cat ~/.ssh/id_rsa.pub 公钥粘贴到github ssh keys
4.mkdir wayde cd wayde
5.git init
4.echo "# wayde” >>README.md
5.git add READ...
← Continue Reading
今天写了一个shell脚本,然后在执行的时候报错,脚本内容很简单,仅供测试:
Shell代码
#!/bin/sh
echo "testpy shell "
具体报错信息如下:
Shell代码
[root@localhost test]# ./monitorpy.sh
-bash: ./monitorpy.sh: /bin/sh^M: bad interpreter...
← Continue Reading
http_load基于linux平台的一种性能测工具。以并行复用的方式运行,用以测试web服务器的吞吐量与负载,测试web页面的性能。
http_load介绍:
http_load基于linux平台的一种性能测工具。以并行复用的方式运行,用以测试web服务器的吞吐量与负载,测试web页面的性能。
下载及安装:
wget http://www.acme.com/software/htt...
← Continue Reading
最近需要将课设代码上传到Github上,之前只是用来fork别人的代码。
这篇文章写得是windows下的使用方法。
第一步:创建Github新账户
第二步:新建仓库
第三部:填写名称,简介(可选),勾选Initialize this repository with a README选项,这是自动创建REAMDE.md文件,省的你再创建。
第四步:安装Github shell程序,地址:htt...
2015.10.27
RSync实现文件备份同步 已关闭评论
centos
统计:854次浏览
← Continue Reading
[rsync实现网站的备份,文件的同步,不同系统的文件的同步,如果是windows的话,需要windows版本cwrsync]
挺实用的一个命令:rsync -avpz --exclude=upload v1/ v2/ 实现文件同步,并排除upload文件夹不同步
一、什么是rsync
rsync,remote synchronize顾名思意就知道它是...
2015.10.22
nginx 实现版本空中升级 已关闭评论
Nginx
统计:992次浏览
← Continue Reading
nginx 空中升级
下载所需版本的Nginx
wget http://nginx.org/download/nginx-1.9.5.tar.gz
2、 获取旧版本nginx的configure选项
/xxx/nginx/sbin/nginx -V
3、 编译新版本的nginx
cd /opt/software/nginx
tar xvf nignx-1.9.5.tar.gz
cd ng...
← Continue Reading
1.如何查看ntp是否配置成功?
2.如何了解ntp列出的参数的含义?
3.restrict关键字的作用是什么?
贴出关键信息:
# watch ntpq -p
Every 2.0s: ntpq -p Sat Jul 7 00:41:45 2007
remote refid st t wh...
← Continue Reading
目录]
1.摘要
2.关键字
3.简介
4.Expect综述
5.callback
6.passwd 和一致性检查
7.rogue 和伪终端
8.ftp
9.fsck
10.多进程控制:作业控制
11.交互式使用Expect
12.交互式Expect编程
13.非交互式程序的控制
14.Expect的速度
15.安全方面的考虑
16.Expect资源
17.参考书籍
1.[摘要]
现代的Shell...
← Continue Reading
使用expect实现简单自动登录,从网上看了几个脚本不错,借鉴一下
NO.1
#!/bin/sh
auto_login_ssh(){
expect -c "
set timeout -1;
spawn -noecho ssh -o StrictHostKeyChecking=no $2 ${@:3};
expect *assword:*;
send -- $1\r;
interact;"...
Page: 3 of 7 1 2 3 4 5 ...
7