SSH端口转发分为两种,一种是本地端口转发,又称为本地SSH隧道。一直是远程端口转发。SSH端口转发,还必须指定数据传送的目标主机,从而形成点对点的端口转发。本地端口转发 假定有三台主机A、B、C。由于种种原因(无论是防火墙还是路由原因),AC两台主机之间无法连通。但是B却可以和A、C连通。这...
分类:
系统相关 时间:
2014-07-13 22:16:11
阅读次数:
422
(1) 获取远程主机的系统类型及开放端口nmap -sS -P0 -sV -O 这里的 可以是单一 IP, 或主机名,或域名,或子网-sS TCP SYN 扫描 (又称半开放,或隐身扫描)-P0 允许你关闭 ICMP pings.-sV 打开系统版本检测-O 尝试识别远程操作系统其它选项:-A 同....
分类:
其他好文 时间:
2014-07-13 21:50:57
阅读次数:
333
Linux 2.4版本的内核之前,Nginx的事件驱动方式是使用的poll、select函数。进程需要等待连接上有事件发生(收到数据)时,需要把所有连接都告诉内核,由内核找出哪些连接上有事件发生。由于需要把大量连接从用户空间拷贝到内核空间,所以开销巨大,因此,使用poll、select事件驱动方式,最大并发数量只能达到几千。Linux 2.6版本之后添加了epoll函数接口,使得最大并发数量可以达...
分类:
其他好文 时间:
2014-07-13 17:27:34
阅读次数:
311
优化性能参数设置,在ngnix.conf中的http 层加上fastcgi参数如下:
http {
fastcgi_cache_path /usr/local/nginx/fastcgi_cache levels=1:2 keys_zone=TEST:10m inactive=5m;
fastcgi_connect_timeout=300;
fastcgi_send_timeout=30...
分类:
其他好文 时间:
2014-07-13 17:17:07
阅读次数:
218
默认网站根目录为/usr/local/nginx/html,要将它改成/homw/www
vi /usr/local/nginx/conf/nginx.conf
将其中的
location / {
root html;
index index.php index.html index.htm;...
分类:
Web程序 时间:
2014-07-13 17:06:03
阅读次数:
219
All relative paths in this config are relative to php's install prefix
Pid file
/usr/local/php/logs/php-fpm.pid
Error log file
/usr/local/php/logs/php-fpm.log
Log level
notice
Whe...
分类:
Web程序 时间:
2014-07-13 16:26:05
阅读次数:
248
[root@luozhonghua etc]# /usr/local/php/sbin/php-fpm start
Starting php_fpm Jul 12 09:41:02.077951 [ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool 'default'
...
分类:
其他好文 时间:
2014-07-13 16:20:24
阅读次数:
225
配置nginx支持php 出现了No input file specified ?
只要修改下安装目录下的 nginx.conf下的
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index ...
分类:
Web程序 时间:
2014-07-13 16:16:48
阅读次数:
270
执行:
./configure --prefix=/usr/local/php --enable-fastcgi --enable-fpm
之后出现
Running FastCGI Process Manager checks
checking for php-fpm config file path... $prefix/etc/php-fpm.conf
checking for ...
分类:
其他好文 时间:
2014-07-13 13:50:43
阅读次数:
205