10 2016 档案

摘要:这种方法无需重启: [root@ha02 ~]# sysctl -p /etc/sysctl.confnet.ipv4.ip_forward = 0net.ipv4.conf.default.rp_filter = 1net.ipv4.conf.default.accept_source_route 阅读全文
posted @ 2016-10-31 17:47 bass 阅读(157) 评论(0) 推荐(0) 编辑
摘要:[root@ok 线下人员照片 - 副本]# for i in $(seq 10);do curl http://www.zhirs.com;doneapp02 ip:10.100.2.178app01 ip:10.100.2.177app01 ip:10.100.2.177app02 ip:10. 阅读全文
posted @ 2016-10-31 14:17 bass 阅读(193) 评论(0) 推荐(0) 编辑
摘要:# egrep -v '^$|^#' /etc/httpd/conf/httpd.conf # grep -v '^$\|^#' /etc/httpd/conf/httpd.conf 阅读全文
posted @ 2016-10-31 12:52 bass 阅读(965) 评论(0) 推荐(0) 编辑
摘要:mysqldump -uUserName -pPassword DBName(表所在的数据库) DBT(要传出数据的表)>./DBT.sql 阅读全文
posted @ 2016-10-31 10:51 bass 阅读(135) 评论(0) 推荐(0) 编辑
摘要:查看进程,按内存从大到小 查看进程,按CPU利用率从大到小排序 阅读全文
posted @ 2016-10-31 09:42 bass 阅读(472) 评论(0) 推荐(0) 编辑
摘要:down:http://www.haproxy.org/ 注意:haproxy代理ssl有两种方式 1.haproxy本身提供ssl证书,后面的web服务器走正常的http 2 haproxy本身只提供代理,后面的web服务器https 第一种方法 需要在编译haproxy支持ssl 不过有报错: 阅读全文
posted @ 2016-10-28 21:06 bass 阅读(3034) 评论(1) 推荐(1) 编辑
摘要:[root@ok ok]# ps --help|grep C -A all processes -C by command name -V,V show version L list format codes f ASCII art forest -w,w wide output n numeric WCHAN,UI... 阅读全文
posted @ 2016-10-27 21:13 bass 阅读(2013) 评论(0) 推荐(0) 编辑
摘要:[root@ok ok]# lsof -ntP -i:22 3119 [root@ok ok]# netstat -lnutp|grep 22 tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 3299/dnsmasq tcp 0 ... 阅读全文
posted @ 2016-10-25 23:53 bass 阅读(687) 评论(0) 推荐(0) 编辑
摘要:下面是/etc/pam.d/su文件的内容 阅读全文
posted @ 2016-10-24 23:30 bass 阅读(3995) 评论(0) 推荐(0) 编辑
摘要:set names utf8防止中文乱码 阅读全文
posted @ 2016-10-24 21:12 bass 阅读(265) 评论(0) 推荐(0) 编辑
摘要:反编译这些class文件或jar包或war包,用TTools https://github.com/Supermax197/TTools 阅读全文
posted @ 2016-10-24 14:10 bass 阅读(679) 评论(0) 推荐(0) 编辑
摘要:[root@ok Desktop]# ifconfig br0 up 开启网桥br0 #给主要个临时的ip [root@ok Desktop]# ifconfig eth0 192.168.1.112 [root@ok Desktop]# ifconfig eth0 Link encap:Ethernet HWaddr 54:EE:75:4E:37:D9 ... 阅读全文
posted @ 2016-10-23 20:29 bass 阅读(256) 评论(0) 推荐(0) 编辑
摘要:探测目标主机的操做系统: 对自己的系统进行扫描: 对系统中的vhosts进行扫描: c01 c02为linux ,1xp为windows 对局域网内的手机ipd进行扫描,系统识别失败!!! 扫描一个范围内的目标(扫描ip地址为192.168.1.1-192.168.1.100内的所有主机) nmap 阅读全文
posted @ 2016-10-23 14:50 bass 阅读(4106) 评论(0) 推荐(1) 编辑
摘要:win+r >cmd >ipconfig /release (释放ip) ipconfig /renew 重新获取ip 阅读全文
posted @ 2016-10-23 13:25 bass 阅读(2475) 评论(0) 推荐(0) 编辑
摘要:location /nexus { proxy_pass http://127.0.0.1:8081/nexus; } [root@GitMaven conf]# pwd /var/opt/gitlab/nginx/conf [root@GitMaven conf]# ls gitlab-http.conf gitlab-... 阅读全文
posted @ 2016-10-22 21:54 bass 阅读(378) 评论(0) 推荐(0) 编辑
摘要:https://sourceforge.net/projects/sentrytools/ 解决方法 把portsentry.c中代“将带有Copyright 1997-2003字样的那行调整为一行即可”: 调整后如下: 安装路径为: PortSentry的配置: 1:通过PortSentry.co 阅读全文
posted @ 2016-10-21 17:16 bass 阅读(2311) 评论(0) 推荐(0) 编辑
摘要:ESTABLISHED,NEW,RELATED,INVALID. 注意:TCP/IP 标准描述下,UDP及ICPM数据包是没有连接状态的,但在state模块的描述下,任何数据包都有连接状态。 ESTABLISHED:与TCP数据包的关系,首先在防火墙上执行ssh client,并且对网络上的ssh服 阅读全文
posted @ 2016-10-20 23:03 bass 阅读(1639) 评论(0) 推荐(0) 编辑
摘要:win+R >mstsc: 弹出: 目标机必开远程 阅读全文
posted @ 2016-10-19 16:14 bass 阅读(793) 评论(0) 推荐(0) 编辑
摘要:原来是因为尝试了个没有意义而且会失败的 gssapi-with-mic 认证方式浪费了时间,打开(本地主机“注意是本地主机---我用的是linux系统”) /etc/ssh/ssh_config 把里面的 GSSAPIAuthentication yes 改成 no 关掉它,即可让 ssh 直接尝试 阅读全文
posted @ 2016-10-19 14:21 bass 阅读(8770) 评论(0) 推荐(0) 编辑
摘要:在本机生成(ssh-keygen -t rsa)公钥和私钥:重命名id_rsa.pub为authorized_keys 把公钥导入到目标机的 ~/.ssh/authorized_keys中用追加的方法!!!! 阅读全文
posted @ 2016-10-19 09:43 bass 阅读(178) 评论(0) 推荐(0) 编辑
摘要:然后点击重新获取证书,然后重新启动服务,问题解决! 阅读全文
posted @ 2016-10-18 03:45 bass 阅读(242) 评论(0) 推荐(0) 编辑
摘要:[root@ok .ssh]# ssh -v root@10.100.2.84 OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to 10... 阅读全文
posted @ 2016-10-17 23:47 bass 阅读(8962) 评论(0) 推荐(0) 编辑
摘要:mysqldump -t 数据库名 -uroot -p > xxx.sql 阅读全文
posted @ 2016-10-16 04:37 bass 阅读(468) 评论(0) 推荐(0) 编辑
摘要:lsof |grep delete lsof(list system open file )可显示系统打开的文件,以root身份运行。 很多时候文件正在被占用,即使删除了,也无法释放空间,只有停 了进程 才能释放空间!! l 阅读全文
posted @ 2016-10-15 23:04 bass 阅读(1158) 评论(0) 推荐(0) 编辑
摘要:tar -cvf test2.tar --exclude=test/test10 test/ 阅读全文
posted @ 2016-10-14 20:52 bass 阅读(509) 评论(0) 推荐(0) 编辑
摘要:tomcat 监听的一些端口 阅读全文
posted @ 2016-10-12 19:01 bass 阅读(309) 评论(0) 推荐(0) 编辑
摘要:memached 是一个高性能的分布式对象缓存系统,用于动态web应用以减轻数库负载。它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提高动态数据驱动网站的速度。memcached基于一个存储键值对的hashmap.其守护进程(daemon)是用C写的,但是客户端可以任何语言来编写,并通过memached协议与守护进程通信。 阅读全文
posted @ 2016-10-12 00:08 bass 阅读(254) 评论(0) 推荐(0) 编辑
摘要:网上找的一个配置: 阅读全文
posted @ 2016-10-11 10:04 bass 阅读(5982) 评论(0) 推荐(0) 编辑
摘要:SOCKET原理 建立Socket连接至少需要一对套接字,其中一个运行于客户端,称为ClientSocket ,另一个运行于服务器端,称为ServerSocket 。 套接字之间的连接过程分为三个步骤:服务器监听,客户端请求,连接确认。 阅读全文
posted @ 2016-10-10 21:40 bass 阅读(158) 评论(0) 推荐(0) 编辑
摘要:HTTP/1.0 >一个包含有许多图像的网页文件中并没有包含真正的图像数据内容,而只是指明了这些图像的URL地址,当WEB浏览器访问这个网页文件时,浏览器首先要发出针对该网页文件的请求,当浏览器解析WEB服务器返回的该网页文档中的HTML内容时,发现其中的<img>图像标签后,浏览器将根据<img> 阅读全文
posted @ 2016-10-10 11:04 bass 阅读(1900) 评论(0) 推荐(0) 编辑
摘要:[root@ok network-scripts]# xdg-open ifcfg-eth0 阅读全文
posted @ 2016-10-08 09:16 bass 阅读(264) 评论(0) 推荐(0) 编辑
摘要:[root@ok Desktop]# zip -r image.zip ./*.jpg adding: 20161007_113743.jpg (deflated 0%) adding: 20161007_114943.jpg (deflated 0%) [root@ok Desktop]# file image.zip image.zip: Zip archive data, a... 阅读全文
posted @ 2016-10-07 15:33 bass 阅读(649) 评论(0) 推荐(0) 编辑
摘要:做成以后:白橙 橙 白绿 蓝 白蓝 绿 白棕 棕(注意看的方向) 阅读全文
posted @ 2016-10-07 11:45 bass 阅读(235) 评论(0) 推荐(0) 编辑
摘要:"+"为多少天之前的时期"-"为多少天以后的日期 [root@ok tools]# date -d "-83 days ago" +%Y%m%d 20161228 [root@ok tools]# date -d "-81 days ago" +%Y%m%d 20161226 [root@ok tools]# date -d "+1 days ago" +%Y%m%d 20161005#昨天... 阅读全文
posted @ 2016-10-06 16:33 bass 阅读(390) 评论(0) 推荐(0) 编辑
摘要:update user set password=password("newpassword") where user="root"; 阅读全文
posted @ 2016-10-06 16:01 bass 阅读(145) 评论(0) 推荐(0) 编辑
摘要:安装需要的组件 PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正则表达式库。nginx rewrite依赖于PCRE库,所以在安装Tengine前一定要先安装PCRE,最新版本的PCRE可在官网(http://www.pcr 阅读全文
posted @ 2016-10-06 14:43 bass 阅读(447) 评论(0) 推荐(0) 编辑
摘要:硬盘的最小存储单位叫“扇区(sector)”,每个扇区存储512字节(相当于0.5kb).系统读取硬盘时,只会读取多个sector即一个block.block 是文件存取的最小单位block的大小为4kb,也就是8*sector=1block. inode 是存放文件的元信息,如文件的创建者,文件件 阅读全文
posted @ 2016-10-05 23:43 bass 阅读(273) 评论(0) 推荐(0) 编辑
摘要:show grants for 'username'@'%'; 阅读全文
posted @ 2016-10-04 15:25 bass 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-10-02 08:57 bass 阅读(152) 评论(0) 推荐(0) 编辑
摘要:方便朋友下载,自己的文件!! 阅读全文
posted @ 2016-10-02 07:42 bass 阅读(560) 评论(0) 推荐(0) 编辑
摘要:把或名改成IP 阅读全文
posted @ 2016-10-01 15:54 bass 阅读(856) 评论(0) 推荐(0) 编辑
摘要:repository:仓库 Git global setup: git config --global user.name "Administrator" git config --global user.email "admin@example.com" Create Repository mkd 阅读全文
posted @ 2016-10-01 15:31 bass 阅读(1188) 评论(0) 推荐(0) 编辑
摘要:网盘地址:https://pan.baidu.com/s/1c1JHXXQ 阅读全文
posted @ 2016-10-01 09:51 bass 阅读(226) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示