Redhat7搭建ntp(时间同步)安装:#yuminstallntp启动:#systemctlstartntpd#systemctlenablentpd查看同步:#ntpq-p开放防火墙:#firewall-cmd--permanent--add-service=ntp此时ntpServer已搭建完成客户端从ntpServer同步安装:#yuminstallntp修改配置:#vi/etc/ntp.confserver..
分类:
其他好文 时间:
2015-12-17 22:39:08
阅读次数:
331
rewirte 可以写在server{}与location{}里server {这里的rewrite 只能做301 如:rewrite ^/(.*)$ http://www.wdzj.com/index.html permanent;如果这样写 if ( $robots_wangdaizhijia ...
分类:
其他好文 时间:
2015-12-17 22:11:05
阅读次数:
167
Redhat7firewall(防火墙)启动、停止firewall#systemctlstart\stop\restart\statusfirewalld主配置文件:/etc/firewalld/zones/public.xmlfirewall命令:开放服务:#firewall-cmd--permanent--add-service=ssh关闭服务:#firewall-cmd--permanent--remove-service=ssh查看已开..
分类:
其他好文 时间:
2015-12-13 18:58:26
阅读次数:
450
Redhat7配置http安装:#yuminstallhttpd主配置文件:/etc/httpd/conf/httpd.conflog路径:/var/log/httpd启动:#systemctlstarthttpd#systemctlenablehttpd开放防火墙:#firewall-cmd--permanent--add-service=http其它地址访问该web(selinux):#setsebool-Phttpd_can_network_..
分类:
Web程序 时间:
2015-12-13 18:56:37
阅读次数:
148
Redhat7配置vsftpd安装:#yuminstallvsftpdftp(或rpm-i)启动:#systemctlstartvsftpd开机启动:#systemctlenablevsftpd查看状态:#systemctlstatusvsftpd主要配置文件:/etc/vsftpd/vsftpd.confLog路径:/var/log/xferlog防火墙开放服务:#firewall-cmd–permanent–add-serv..
分类:
其他好文 时间:
2015-12-05 02:06:10
阅读次数:
175
1. 域名重定向server_name wx.he.com weixin.ha.com; if ($http_host !~* "wx\.he\.com"){ rewrite ^/(.*)$ http://wx.he.com/$1 permanent; ...
分类:
其他好文 时间:
2015-11-24 12:28:21
阅读次数:
104
Linux下的jetty报java.lang.OutOfMemoryError: PermGen space及Jetty内存配置调优解决方案问题linux的jetty下发布程序后再启动jetty服务时,发现启动不了,从日志中找到报java.lang.OutOfMemoryError: PermGen space。原因分析PermGen space,全称是Permanent Generation s...
分类:
编程语言 时间:
2015-11-13 10:33:11
阅读次数:
1228
一、last和break总结如下:(1)、last和break当出现在location之外时,两者的作用是一致的没有任何差异。注意一点就是,他们会跳过所有的在他们之后的rewrite模块中的指令,去选择自己匹配的locationExample:rewriteurl1url2last;①
rewriteurl3url4last;②
rewriteurl5url6last..
分类:
其他好文 时间:
2015-11-11 22:19:24
阅读次数:
249
防火墙开放新端口 firewall-cmd?--zone=public?--add-port=3002/tcp?--permanent #重新加载防火墙,才能生效 firewall-cmd?--reload...
分类:
其他好文 时间:
2015-11-11 19:25:09
阅读次数:
264
1. Java虚拟机内存结构划分新生代和老年代,这样只在新生代分配内存,从而简化了新对象的分配。另外新生代和老年代使用不同的GC算法,可以更有效的清除不再需要的对象。从上图可以看出,JVM内存由young+old+permanent组成,JVM又进一步将Young分成了eden,from survi...
分类:
其他好文 时间:
2015-11-06 19:14:42
阅读次数:
283