it2ex.com
域名年龄: 14年3个月24天HTTP/1.1 200 OK Transfer-Encoding: chunked 访问时间:2014年11月03日 13:11:07 语言环境:PHP/5.3.28 类型:text/html; charset=UTF-8 Content-Encoding: gzip 动作:Accept-Encoding 网站编码:UTF-8
It2ExpertOracle,Linux,网络;美好的生活需要用心记录首页碎语相册登录About mereboot作者:KEDI 发布于:2014-9-3 14:33 Wednesday 分类:linuxecho "b" > /proc/sysrq-trigger评论(0)引用(21)浏览(482)perl进程间的通信作者:KEDI 发布于:2014-7-22 17:00 Tuesdaypipe(R,W);if (my $pid = fork()) {#select( W );#$|=1;print W "abc";}else {close(W);print <R>;close(R);}评论(0)引用(75)浏览(1650)输出i节点号作者:KEDI 发布于:2013-12-29 20:55 Sunday 分类:perl#include "stdio.h"#include "sys/stat.h"voidmain(int argc,char *argv[]){int i;struct stat buf;char *ptr;for (i=1;i<argc;i++){if (lstat(argv[i],&buf)<0){printf("lstat EROR");continue;}printf("i-nod:%d\n",buf.st_ino);if(S_ISREG(buf.st_mode)){printf("%s is reg file.\n",argv[i]);}else if(S_ISDIR(buf.st_mode)){printf("%s is directory.\n",argv[i]);}}}评论(0)引用(0)浏览(1124)硬链接软链接区别作者:KEDI 发布于:2013-12-29 20:46 Sunday硬链接1.目录不可建立硬链接(root权限以外)2.不可跨文件系统3.源必须是存在的软链接,与硬链接相反#include "stdio.h"#include "fcntl.h"int main(void){if(open("file",O_RDWR)<0){printf("open ERROR\n");}if(unlink("file")<0){printf("unlink ERROR\n");}printf("file unlink\n");return(0);}评论(0)引用(663)浏览(18913)syslog不生成日志文件作者:KEDI 发布于:2013-12-13 16:14 Friday/etc/init.d/syslogd restart 不起作用kill -9 <pid> && syslogd -rx -m 0评论(0)引用(68)浏览(2385)jks p12互转作者:KEDI 发布于:2013-12-10 18:23 Tuesday::JKS → P12keytool -importkeystore -srckeystore client.jks -srcstoretype JKS -deststoretype PKCS12 -destkeystore client.p12::P12 → JKSkeytool -importkeystore -srckeystore client.p12 -srcstoretype PKCS12 -deststoretype JKS -destkeystore client.jks评论(0)引用(69)浏览(2200)不小心犯下的错作者:KEDI 发布于:2013-11-19 20:34 Tuesdayssh -t x.x.x.x "bash --noprofile ;sed -i 's/exit//' /etc/profile.d/a.sh "评论(0)引用(765)浏览(8968)禁用scp和sftp保留ssh作者:KEDI 发布于:2013-11-18 11:59 Monday 分类:linuxchmod 000 /usr/bin/scp/etc/ssh/sshd_config注释如下行# Subsystem sftp /usr/libexec/openssh/sftp-server评论(0)引用(31)浏览(2283)nginx 手动删除缓存作者:KEDI 发布于:2013-11-12 17:10 Tuesdayserver {listen 80;server_name *.x.com;access_log /var/log/nginx/x.com.access;error_log /var/log/nginx/x.com.error;location / {proxy_pass http://x.x.x.x;include proxy.conf;}location ~ /purge(/.*){allow all;proxy_cache_purge cache_x $host$1$is_args$args;}location ~ .*.(html|js|css|jpg|gif|swf|png)$ {proxy_pass http://x.x.x.x;proxy_set_header Host $host;proxy_set_header Accept-Encoding 'gzip';proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_cache cache_x;proxy_cache_key $host$uri$is_args$args;proxy_cache_valid 200 302 1d;proxy_cache_valid 301 10d;proxy_cache_valid any 1h;expires 1d;}}评论(0)引用(13)浏览(1851)jks 证书作者:KEDI 发布于:2013-10-14 19:49 Mondayfrom :http://yushan.iteye.com/blog/434955结合网络资源,对keytool使用总结,以备后用:Keytool是一个Java数据证书的管理工具 ,Keytool将密钥(key)和证书(certificates)存在一个称为keystore的文件中 在keystore里,包含两种数据: 密钥实体(Key entity)——密钥(secret key)又或者是私钥和配对公钥(采用非对称加密) 可信任的证书实体(trusted certificate entries)——只包含公钥ailas(别名)每个keystore都关联这一个独一无二的alias,这个alias通常不区分大小写JDK中keytool常用命令: -genkey 在用户主目录中创建一个默认文件".keystore",还会产生一个mykey的别名,mykey中包含用户的公钥、私钥和证书(在没有指定生成位置的情况下,keys
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2026-01-08 21:54, Process in 0.0044 second.