https://www.gravatar.com/avatar/5f48da38e786436afece6f2e46196202?s=240&d=mp

Linux Shell

Java 进程 JVM 参数调优指导

最近在学习 JVM 和 Tomcat 相关的配置和调优,在网上找到了这个PDF,讲得非常到位,故整理到博客。

作者

欢迎交流:余浩东,yuhaodong#gmail.com

iptables nat 内网共享上网

本文不谈什么是 iptables 和 iptables 的使用方法,只给出实例。

  • 环境介绍
  • linux 2.4 +
  • 2个网络接口
  • Lan口:10.1.1.254/24 eth0
  • Wan口:60.1.1.1/24 eth1
  • 目的:实现内网中的节点(10.1.1.0/24)可控的访问internet。
  • 首先将Lan的节点pc的网关指向10.1.1.254。

确定你的linux的ip配置无误,可以正确的ping通内外的地址。同时用route命令查看linux的本地路由表,确认指定了可用的ISP提供的默认网关。

Nginx 报错:"Too many open files"

查看 Nginx 日志发现有很多报错:“Too many open files”,我明明记得我在 rc.local里面添加了 ulimt -n 65535,为何没有生效?

遂网上寻找答案:

更改最大打开文件数有以下三种修改方式:
1.在/etc/rc.local 中增加一行 ulimit -SHn 65535
2.在/etc/profile 中增加一行 ulimit -SHn 65535
3.在/etc/security/limits.conf最后增加如下两行记录
 * soft nofile 65535
 * hard nofile 65535

在CentOS 6上安装JBoss 7.1

Install JBoss 7.1 on CentOS 6
This post will cover installing JBoss 7.1.1 on CentOS 6.x.
We’ll also set up JBoss to run as a service, as well as set up access to the management console
Finally, we will look at how run JBoss on port 80 or, alternatively, placing JBoss behind Apache.
In this post, we will set up the JBoss 7.1.1 in Standalone mode. In a subsequent post we will look at setting up JBoss 7.1.1 in Domain mode.

解决 Win 10 更换语言包后,应用商店闪退的问题

在公司和家里的电脑用了差不多一个多月的 Win 10了,表现非常不错,因为目前在测试版,所以会有各种问题,经常会遇到应用商店打不开或者闪退的情况,比如这次就因为我将系统默认语言更改成了英文,导致了应用商店闪退;网上找了很多办法,都没用
最后我手动删除