安装nginx 1.修改nginx的官方源 [root@web01 ~]# vim /etc/yum.repos.d/nginx.repo [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$ ...
分类:
其他好文 时间:
2020-06-01 23:38:45
阅读次数:
76
Linux 下host文件在 /etc/hosts Windows下host文件在C:\Windows\System32\drivers\etc 在host文件的最后面加上:Linux Copy sudo vim /etc/hosts Windows复制一份host文件到别的比方,然后用记事本打开, ...
分类:
其他好文 时间:
2020-06-01 14:07:28
阅读次数:
89
貌似有不少人苦恼eclipse中文字体大小修改问题,默认的eclipse中文字体很小,和英文字体大小完全不在一个调子上,因为默认的eclipse juno中英文字体是Consolas,字体大小是10,但是大家会发现,如果代码中有中文,那中文的字体会比英文的字体小很多 默认的eclipse juno的 ...
分类:
系统相关 时间:
2020-06-01 14:06:23
阅读次数:
82
安装VIMapt-get install vim如果提示:Reading package lists… DoneBuilding dependency treeReading state information… DoneE: Unable to locate package vim先升级一下:ap ...
分类:
系统相关 时间:
2020-06-01 12:06:49
阅读次数:
61
重装了系统之后,使用ll命令竟然发现报错了。 bash: ll:未找到命令 果断解决一波: vim ~/.bashrc 将alias ll=’ls -l‘前面的注释符号#删掉 运行 问题完美解决。 ...
分类:
其他好文 时间:
2020-06-01 10:22:36
阅读次数:
136
nginx ab并发测试 apr_socket_recv: Connection refused vim /etc/sysctl.conf net.ipv4.tcp_syncookies = 0 就可以了 ...
分类:
其他好文 时间:
2020-05-31 22:05:45
阅读次数:
245
以前一直用的eclipse,web.xml文件自动生成的,没自己改过。 这次web.xml是先创建maven项目再添加web配置时,随便从一个web4.0项目里拷贝来的,然后就出问题了。 Servlet中写了注解@WebServlet("xxxx"),但访问servlet时报404错误。 看了web ...
分类:
Web程序 时间:
2020-05-31 21:54:04
阅读次数:
168
预配 1. 准备好4台机器 vim /etc/hosts 192.168.42.150 redis-node1 #主 192.168.42.151 redis-node2 #从 192.168.42.152 redis-node3 #从 192.168.42.153 redis-node4 #从 2 ...
分类:
其他好文 时间:
2020-05-31 16:25:12
阅读次数:
70
zabbix_agent自定义key [root@node ~]# vim /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf UserParameter=mysql.ping,mysqladmin -uroot -p123456 -h'127. ...
分类:
数据库 时间:
2020-05-31 16:10:41
阅读次数:
106
一、提取文本工具: 1.文件内容:less和cat less通过n/N进行查找到搜索的内容 2.文本摘要:head和tail head使用-n显示头部行数 tail也可以使用-n显示尾部行数,具体用法如下:#cat test.txt | tail -n3或者#cat test.txt | heal ...
分类:
其他好文 时间:
2020-05-31 15:58:32
阅读次数:
273