03 2014 档案
摘要:From:http://blog.163.com/lgh_2002/blog/static/44017526201011333227161/1、创建公钥和私钥ligh@local-host$ ssh-keygen -t rsaEnter file in which to save the key (/home/jsmith/.ssh/id_rsa):[Enter key] Enter passphrase (empty for no passphrase): [Press enter key]Enter same passphrase again: [Pess enter key]Your .
阅读全文
摘要:From:http://dadekey.blog.51cto.com/107327/119938我们先写一个简单的脚本,执行以后再解释各个变量的意义# touch variable# vi variable脚本内容如下:#!/bin/shecho "number:$#"echo "scname:$0...
阅读全文
摘要:From:http://www.wenzizone.com/2009/08/14/nfs_can_not_automount_supplementary.html手动挂载nfs没有问题,说明portmap服务正常。使用/etc/init.d/netfs status 查看状态,可以看到需要挂载的路径,执行/etc/init.d/netfs start,nfs路径可以被挂载。说明netfs服务正常。查看/etc/rc.d/rc3.d下面的启动脚本,如下S10network S12syslog S13irqbalanceS13iscsi S13portmap S22messa...
阅读全文
摘要:From:http://www.g2w.me/2013/10/cache-github-credential-for-https-repository/http://openwares.net/linux/gerrit_workflow.htmlgit config --system 配置全局 ...
阅读全文
摘要:Apache 2 ConfigurationTo run Gerrit behind an Apache server usingmod_proxy, enable the necessary Apache2 modules: a2enmod proxy_http a2enmod ssl ; # optional, needed for HTTPS / SSLConfigure an Apache VirtualHost to proxy to the Gerrit daemon, setting theProxyPassline to use thehttp://URL...
阅读全文
摘要:From:http://blog.csdn.net/ithomer/article/details/6264881以eth0为例1.以DHCP方式配置网卡编辑文件: /etc/network/interfaces:sudo vi /etc/network/interfaces并用下面的行来替换有关eth0的行:# The primary network interface,# use DHCP to find our addressauto eth0iface eth0 inet dhcp用下面的命令使网络设置生效:sudo /etc/init.d/networking restart当然,也
阅读全文
摘要:From:http://blog.csdn.net/marujunyy/article/details/84662551、首先编写一个简单的shell脚本test.sh#! /bin/bashecho "Hello world!"filename=`date"+%Y%m%d"`echo $filename2、设置脚本开机自启动方法一: 编辑/etc/init.d/rc.local文件,在最后添加编写的脚本即可。 比如:将/home/test.sh添加为开机自启动 编辑/etc/init.d/rc.local,在末尾添加如下内容:sh /home/test
阅读全文
摘要:安装主要是按照这个网址的步骤来的:http://ixdba.blog.51cto.com/2895551/526452执行到make步骤时,出错:root@host:~/iscsitarget-1.4.20.2# makecc: error: /lib/modules/3.5.0-23-generic/build/include/linux/version.h: No such file or directorycc: fatal error: no input filescompilation terminated./bin/sh: 1: [: -le: unexpected operato
阅读全文
摘要:From:http://fatalove.iteye.com/blog/1340334gerrit清单库是用来配合repo使用的。清单库中列出了gerrit服务器上的其他版本库。客户端通过repo脚本下载清单库后,脚本会解析清单库中列出的库并自动下载。首先执行repo init,下载版本库,然后执行repo sync下载所有库的代码。首先将repo版本库克隆至本地并push到gerrit服务器。git clone https://android.googlesource.com/tools/repo创建一个空的清单库manifest.git,清单库中只有xml文件。在清单库中创建default
阅读全文