摘要:
命令#sync #echo3>/proc/sys/vm/drop_caches 查看内存情况:#more/proc/meminfo Kernels 2.6.16 and newer provide a mechanism to have the kernel drop the page cache and/or inode and dentry caches on command, which can help free up a lot of memory. Now you can throw away that script that allocated a ton of memor
阅读全文
posted @ 2013-10-14 17:25
一天不进步,就是退步
阅读(56275)
推荐(0)
摘要:
命令基本格式:1、从 本地 复制到 远程* 复制文件: * 命令格式: scp local_file remote_username@remote_ip:remote_folder 或者 scp local_file remote_username@remote_ip:remote_file2、从 远程 复制到 本地从 远程 复制到 本地,只要将 从 本地 复制到 远程 的命令 的 后2个参数 调换顺序 即可;
阅读全文
posted @ 2013-10-10 16:09
一天不进步,就是退步
阅读(935)
推荐(0)
摘要:
关闭防火墙[root@localhost ~]# service iptables stopiptables: Flushing firewall rules: [ OK ]iptables: Setting chains to policy ACCEPT: filter [ OK ]iptables: Unloading modules: [ OK ]如果此时无法使用scp命令,可以使用以下命令检测是否安装openssh# rpm -qa |grep openssh如果没有出现包含了openssh client,openssh server,及openssh3个公共组件则说明安装不全或者没有
阅读全文
posted @ 2013-10-09 23:27
一天不进步,就是退步
阅读(839)
推荐(0)
摘要:
Install Redis on CentOS 6.4source:http://thoughts.z-dev.org/2013/05/27/install-redis-on-centos-6-4/We’re provisioning production machines today!This means that I’m finding a lot of things that I did previously to make my life easier. We use Redis primarily to temporarily cache data retrieved from Ri
阅读全文
posted @ 2013-10-09 22:32
一天不进步,就是退步
阅读(461)
推荐(1)
摘要:
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)解决方案:在java_opts="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n address=port"中修改port值。
阅读全文
posted @ 2013-10-09 15:19
一天不进步,就是退步
阅读(6201)
推荐(0)
摘要:
环境:主机windows xp 虚拟机centos 6.4[root@localhost /]# iptables -I INPUT -p tcp --dport 80 -j ACCEPT[root@localhost /]# /etc/rc.d/init.d/iptables saveiptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ][root@localhost /]# cd /etc[root@localhost etc]# cd init.d[root@localhost init.d]# lsauditd
阅读全文
posted @ 2013-10-08 23:12
一天不进步,就是退步
阅读(1529)
推荐(0)
摘要:
‘--exclude-dir=dir’ Exclude directories matching the pattern dir from recursive directory searches. Recent versions of GNU Grep (>= 2.5.2) provide:‘--exclude-dir=dir’ Exclude directories matching the pattern dir from recursive directory searches. So you can do:grep -R --exclude-dir=node_module...
阅读全文
posted @ 2013-10-08 21:57
一天不进步,就是退步
阅读(772)
推荐(0)
摘要:
原地址:http://www.cnblogs.com/zqwang0929/p/3352237.html在 Linux 操作系统下,几乎所有的软件均通过RPM 进行安装、卸载及管理等操作。RPM 的全称为Redhat Package Manager ,是由Redhat 公司提出的,用于管理Linux 下软件包的软件。Linux 安装时,除了几个核心模块以外,其余几乎所有的模块均通过RPM 完成安装。RPM 有五种操作模式,分别为:安装、卸载、升级、查询和验证。 1)用RPM安装软件包,最简单的命令如下:1 #rpm -i example.rpm 安装 example.rpm 包;2 #rpm
阅读全文
posted @ 2013-10-08 09:19
一天不进步,就是退步
阅读(427)
推荐(0)
摘要:
1.创建目录并设置写权限的操作如下:$mkdir -p /data/db(创建目录和必要的父目录,若父目录不存在则先创建父目录再创建子目录)$ chown -R $usergroup:$user /data/db2. 下载gz文件并解压 $tar zxvf mongodb-linux-i686-xx...
阅读全文
posted @ 2013-10-01 08:19
一天不进步,就是退步
阅读(346)
推荐(0)
摘要:
http://flycars001.iteye.com/blog/1949085YUM到底是啥东东?YUM(Yellowdog Updater Modified)是一款开源命令行及图形化软件包管理工具,面向基于RPM(红帽软件包管理器)的Linux系统。 它让广大用户和系统管理员可以在系统上轻松地安装、更新、移除或搜索软件包。它由Seth Vidal开发和发布,采用了GPL(通用公共许可证),是一款开源工具。这意味着,谁都可以下载和访问代码,以修复软件错误,开发定制的软件包。YUM 通过解决软件包的依赖项问题,使用众多的第三方软件库来自动安装软件包。1. 使用Yum安装软件包想安装一个名为Fi
阅读全文
posted @ 2013-09-30 11:09
一天不进步,就是退步
阅读(1515)
推荐(0)