- 博客(3)
- 收藏
- 关注
原创 Centos清理内存,内存回收,释放及内存使用查看的相关命令
在清理前内存使用情况 free -m 用以下命令清理内存 echo 1 > /proc/sys/vm/drop_caches 清理后内存使用情况再用以下命令看看。 free –m 多出很多内存了吧。 查看内存条数命令: dmidecode |grep -A16 "Memory Device$"
2016-09-23 14:45:32 2223
原创 centos history显示命令执行时间、执行用户,执行IP
1.在/etc/profile的最后添加如下部分: USER_IP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'` export HISTTIMEFORMAT="[%F %T][`whoami`][${USER_IP}] " 重载:source /etc/profile
2016-09-23 11:29:38 3775
原创 centos tomcat启动慢的解决办法
试着修改$JAVA_HOME/jre/lib/security/java.security文件 找到securerandom.source #securerandom.source=file:/dev/urandom securerandom.source=file:/dev/./urandom
2016-09-23 11:23:34 1824
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人