把启动命令放到/etc/rc.d/rc.local文件里这样就可以每次启动的时候自动启动服务了,例如对于apache,编译好apache后会在安装目录的bin下生成apachectl文件,这是个启动脚本,我们只需要把这个命令加到rc.local里就可以了(suse没有rc.local。SUSE是可以...
分类:
系统相关 时间:
2014-05-19 07:31:30
阅读次数:
379
使用SDK Manager更新时出现问题Failed to fetch URL
https://dl-ssl.google.com/android/repository/repository-6.xml, reason:
Connection to https://dl-ssl.google.com...
分类:
移动开发 时间:
2014-05-18 20:25:14
阅读次数:
405
//#define LOCAL#include#includeusing namespace
std;int const MAX_N=10005;int const MAX_M=100;int const INF=100000000;int
N,M,x[MAX_N],lb,ub;//判断是否满足条件...
分类:
其他好文 时间:
2014-05-18 19:38:50
阅读次数:
378
今天给nginx 升级的时候碰到一个问题通过执行 add-apt-repository
命令来添加nginx 的ppa的时候发现 命令找不到root@ubuntu:~# sudo
add-apt-repositoryppa:nginx/stablesudo: add-apt-repository: ...
分类:
其他好文 时间:
2014-05-17 22:10:10
阅读次数:
336
PrerequisiteHadoop 2.2 has been installed (and
the below installation steps should be applied on each of Hadoop node)Step 1.
Install R (by yum)[hadoop...
分类:
系统相关 时间:
2014-05-17 21:51:24
阅读次数:
671
既有环境:1)下载安装p4merge2)安装git下面是配置p4merge为git
mergetool的步骤1. /usr/local/bin下创建extMerge文件:$ cat >>
/usr/local/extMerge#!/bin/sh/Applications/IDE/p4merge.ap...
分类:
其他好文 时间:
2014-05-17 21:41:46
阅读次数:
354
file_open_mode上传档案的权限,与chmod
所使用的数值相同。如果希望上传的文件可以执行,设此值为0777。local_umask=022
这是指定本地用户上传后的文件权限设置umask是unix操作系统的概念,umask决定目录和文件被创建时得到的初始权限umask = 022 时,...
分类:
其他好文 时间:
2014-05-17 21:23:11
阅读次数:
407
64位,才可以安装KVM虚拟机。32位系统的内核默认没有把KVM模块编译进去,而且源中也没有与虚拟化相关的软件包,如Qemu等报device-mapper-devel/libdevmapper错误解决方法在Centos下
yum -y install device-mapper-devel;在Ub....
分类:
其他好文 时间:
2014-05-17 20:55:55
阅读次数:
243
NameNode有这么几个配置:PropertyDescriptionSuggested
valuedfs.name.dirDirectory in NameNode’s local filesystem to store HDFS’s
metadata/home/hadoop/dfs/namedf...
分类:
其他好文 时间:
2014-05-17 18:56:09
阅读次数:
367