随笔分类 -  Ubuntu

摘要:#include<stdio.h>#include<stdlib.h>#include<libpq-fe.h>#include <string.h>int main(){ PGconn *conn; const char *conninfo="host=localhost dbname=cloud user=cloud password=cloud"; // char conninfo[100]; // sprintf(conninfo,"dbname=%s user=%s password=%s",&qu 阅读全文
posted @ 2012-12-11 21:29 glose 阅读(763) 评论(0) 推荐(0) 编辑
摘要:http://www.ibm.com/developerworks/cn/linux/l-makefile/ 阅读全文
posted @ 2012-12-06 13:04 glose 阅读(140) 评论(0) 推荐(0) 编辑
摘要:#!/bin/shif [ $# -gt 1 ]; then 空格也要注意echo "Uage: $0[FileName]"exit 1elif [ $# -eq 1 ]; thenmyFileName=$1echo $myFileNameelsemyFileName=$0echo "/home/hadoop/"$myFileNamefiif [ ! -f"$file" ];then //!和-f 之间要有空格 echo "$myFileName does not exit!" exit 1fiMY_LINE_NO 阅读全文
posted @ 2012-06-05 10:33 glose 阅读(2497) 评论(0) 推荐(0) 编辑
摘要:配置ssh之前要在本机上装上ssh,可以通过sudo apt-get install ssh或者通过新立德来安装。如果没有进行配置的话,登录到本机或者远程主机需要该主机的密码才行。下面进行无密码登录的配置:很简单,执行ssh-keygen -t rsa命令,一路敲回车就行了,就在.ssh文件夹下生成了2个文件,一个公钥和一个私钥文件, id_rsa id_rsa.pub ,然后执行cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys命令。这样配置之后就可以实现无密码登录本机。如果需要登录到远程主机,只需要将authorized_keys文件发送到远程主机的~/ 阅读全文
posted @ 2011-10-14 12:02 glose 阅读(22611) 评论(1) 推荐(3) 编辑
摘要:1 安装eclipse: 第一种是通过Ubuntu自带的程序安装功能安装Eclipse,应用程序 ->Ubtuntu软件中心,搜Eclipse安装即可。 第二种方法是用命令:应用程序->附件->终端 然后输入(中间可能需要你输入密码): sudo apt-get install eclipse sudo apt-get install eclipse-pde sudo apt-get install eclipse-jdt2 安装中文语言包 菜单栏:Help------>Install New Software------>在Work with的框框下输入以下地址 阅读全文
posted @ 2011-09-03 12:34 glose 阅读(470) 评论(0) 推荐(0) 编辑
摘要:1.登录工作站1.1 透过 PC 登录工作站执行格式:telnet hostname (在 dos 下执行)telnet ip-addressExample:telnet doc telnet 140.122.77.120注: 可利用指令 arp hostname 或 arp domain_name 查询 ip_address1.2 登录步骤login : _______ > 输入 usernamepassword : _______ > 输入密码1.3 登出步骤% logout或 % exit或 %1.4 更改帐号密码% yppasswd > 执行后将会出现下列信息Chan 阅读全文
posted @ 2011-07-08 11:03 glose 阅读(253) 评论(0) 推荐(0) 编辑
摘要:过程:gedit /etc/hosts将hosts中的127.0.1.1 后面的名字改成自己想要的主机名,我的是hadoop。同时要保证/etc/hostname中的主机名与刚才修改的一致,不一致的话一定要改过来。这样应该就好用了,再不行的话就重启电脑吧。 阅读全文
posted @ 2011-05-03 09:18 glose 阅读(702) 评论(0) 推荐(0) 编辑
摘要:PHP开发和服务器运行环境首选LAMP组合,即Linux+Apache+Mysql+Php/Perl /Python,能最优化服务器性能。如何在本地电脑Ubuntu 中安装和配置LAMP环境搭建?Ubuntu1010本身就是基于Linux内核,所以Linux是现成的了。使用Ubuntu LAMP Server软件包可以很简单地实现Linux下Apache,Mysql和Php的统一安装和配置,也不再需要一个一个来安装配置了。Ubuntu环境下如何安装LAMP组件?使用Ubuntu界面管理器:系统->系统管理->新立得软件包管理器->编辑->使用任务标记分组软件包-> 阅读全文
posted @ 2011-04-15 19:29 glose 阅读(367) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示