随笔分类 -  Linux

学习笔记(6)——实验室集群配置
摘要:若某一结点的GPFS文件系统服务进程失效或被杀死,重启该服务并自动挂载磁盘阵列:(1)在管理结点上重新激活失效节点:查看集群状态:mmgetstate -aLs启动结点5的GPFS守护进程:mmstartup -N node05(2)在失效结点上重启ganglia监控服务:service gmond restatr 阅读全文
posted @ 2014-01-03 10:20 yeahgis 阅读(432) 评论(0) 推荐(0)
学习笔记(5)——实验室集群LVS监控Web界面配置
摘要:症状:通过虚拟IP能访问到监控页面:http://192.168.253.110/ipvsadm.php,但是却无法读出LVS任务分发及集群负载信息。打开ipvsadm.php页面,源码如下:";$i = 0;$table_begin = 0;while ($result) { $i++; $len = strpos ($result, "\n"); $line = substr ($result, 0, $len); $result = substr ($result, $len + 1); if ($i "); if ($isReal == 1) . 阅读全文
posted @ 2013-12-11 20:48 yeahgis 阅读(2117) 评论(0) 推荐(0)
学习笔记(4)——实验室集群管理结点IP配置
摘要:经过验证,集群管理结点mgt的IP配置应为如下所示:[root@mgt zmq]# ifconfig//外部网卡eth0 Link encap:Ethernet HWaddr 5C:F3:FC:E9:61:78 inet addr:192.168.253.100 Bcast:192.168.253.255 Mask:255.255.255.0 inet6 addr: 2001:cc0:2034:253:5ef3:fcff:fee9:6178/64 Scope:Global inet6 addr: fe80::5ef3:fcf... 阅读全文
posted @ 2013-12-11 17:26 yeahgis 阅读(652) 评论(0) 推荐(0)
学习笔记(3)——实验室集群WMS服务配置
摘要:1、启动mgt结点的tomcat服务:[root@mgt zmq]# /home/geohpc/softwares/apache-tomcat-7.0.34/bin/startup.sh关闭为[root@mgt zmq]# /home/geohpc/softwares/apache-tomcat-7.0.34/bin/shutdown.sh2、正在每个结点启动/home/geohpc/bin/webservice.sh脚本:#!/bin/bashmapscapeservice='netstat -an | grep LISTEN | grep :9527'if [ " 阅读全文
posted @ 2013-12-11 17:16 yeahgis 阅读(1175) 评论(0) 推荐(0)
学习笔记(2)——实验室集群LVS配置
摘要:查看管理结点mgt的网卡信息,为mgt设置VIP[root@mgt ~]# ifconfigeth0 Link encap:Ethernet HWaddr 5C:F3:FC:E9:61:78 inet addr:192.168.253.100 Bcast:192.168.253.255 Mask:255.255.255.0 inet6 addr: 2001:cc0:2034:253:5ef3:fcff:fee9:6178/64 Scope:Global inet6 addr: fe80::5ef3:fcff:fee9:617... 阅读全文
posted @ 2013-12-11 16:33 yeahgis 阅读(1889) 评论(0) 推荐(0)
Fedora16的双显卡切换问题
摘要:症状:笔记本是Acer 4745G,安装了Fedora16+Win7 x64的双系统,每次开机后,独立显卡的风扇就开始狂转,同时笔记本的发热量极大,左侧出风口简直烫手。。。。问题:Acer 4745G配置了双显卡,在WIn7下可以方便地切换,但是在linux下必须手动配置。查看系统当前使用的显示核心,如果像下面这样,说明正在使用2个核心工作:[geohpc@jeff-fedora ~]$ lspci|grep VGA00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Co 阅读全文
posted @ 2013-12-11 12:58 yeahgis 阅读(1856) 评论(0) 推荐(0)
学习笔记(1)——实验室集群配置
摘要:1、MapScapeService绘图服务和gdapp算法服务的启动方法://使用端口9527[root@node03 ~]# nohup /home/geohpc/bin/s &//使用端口35569[root@node03 ~]# nohup /home/geohpc/bin/gdappwl &在每个计算节点上启动上述服务,查看是否已经启动;//MapScapeService监听9527端口[root@mgt softwares]# lsof -i:9527COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEMapScape. 阅读全文
posted @ 2013-12-11 01:04 yeahgis 阅读(1043) 评论(0) 推荐(0)
实验室集群硬件配置记录
摘要:1、管理节点(24个CPU核心,24G内存,Red Hat Enterprise Linux Server release 6.2 (Santiago),磁盘阵列19T,250G硬盘)[root@mgt ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c24 Intel(R) Xeon(R) CPU X5650 @ 2.67GHz[root@mgt ~]# cat /etc/issue | grep LinuxRed Hat Enterprise Linux Server release 6.2 (Santiago)[root@m 阅读全文
posted @ 2013-08-10 21:12 yeahgis 阅读(686) 评论(0) 推荐(0)
启动程序为后台服务时几个常用的linux命令
摘要:1、后台运行程序作为服务,避免终端退出后程序shutdownnohup /home/geohpc/bin/s & >null在终端输入任意命令回到console后,用exit命令退出终端,而非直接关闭。2、ps -A|grep Map查看所有名称中含有Map的进程3、kill -9 1001杀死进程号为1001的进程4、killall pname杀死名称为pname的进程5、lsof -i:34455查看占用34455端口的进程的PID 阅读全文
posted @ 2013-04-23 10:51 yeahgis 阅读(429) 评论(0) 推荐(1)
linux下文本编码转换
摘要:windows平台下的源码拿到linux平台下编译时,经常遇到中文注释显示为乱码的问题,一般是因为原始编码在linux下不支持所导致,只需要将其转换到UTF-8编码即可。如:从gbk转到utf8:[geohpc@mgt ~]$ iconv -f gbk -t utf8 main.cpp > conv/main.cpp 阅读全文
posted @ 2013-01-29 13:26 yeahgis 阅读(442) 评论(0) 推荐(0)
redhat下查看系统当前登录的用户、更改用户密码、强制踢出用户
摘要:1、查看当前登录的用户[root@mgt ~]# w 18:08:27 up 40 days, 8:16, 5 users, load average: 0.01, 0.21, 0.36USER TTY FROM LOGIN@ IDLE JCPU PCPU WHATgeohpc pts/0 192.168.13.7 16:23 51:13 0.08s 0.08s -bashgeohpc pts/1 192.168.13.1 14:50 51:28 0.23s 0.02s sshd: g... 阅读全文
posted @ 2013-01-21 18:41 yeahgis 阅读(6852) 评论(0) 推荐(1)
RHELServer6.2下编译GDAL和mysql和proj4支持
摘要:系统信息:Red Hat Enterprise Linux Server release 6.2 (Santiago)编译器:[geohpc@mgt ~]$ gcc -vUsing built-in specs.Target: x86_64-redhat-linuxConfigured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --en 阅读全文
posted @ 2013-01-16 22:10 yeahgis 阅读(1100) 评论(0) 推荐(0)
从4小时到6秒钟,周末就忙了这点事
摘要: 阅读全文
posted @ 2012-12-30 21:51 yeahgis 阅读(274) 评论(0) 推荐(0)
linux下编译复数类型引发的错误:expected unqualified-id before '(' token
摘要:该类型错误一般由头文件引用顺序的问题引起,默认情况下gcc编译器一般会给出问题出处以及所涉及到的所有的头文件,只需要调整#include <complex>以及引用该头文件的其他文件在报错.cpp文件中的引用顺序即可,一般将该文件或者引用该头文件的头文件置于自定义头文件的前面。 阅读全文
posted @ 2012-12-25 10:28 yeahgis 阅读(28702) 评论(1) 推荐(4)
no matching function for call to "namespace::class1::foo(class2&)"
摘要:在将windows下的代码移植到linux平台下时遇到该问题,原因是C++编译器规定临时变量不能作为非const的引用传递。如:foo1::(class2& obj){ ...}foo2::(){ ... return foo1(class2::createObj());}在函数foo2中如此调用foo1函数将报错,正确办法是修改foo1参数为const类型或者显式声明临时变量。如:foo1::(const class2& obj){ ...}foo2::(){ ... return foo1(class2::createObj());}//或者foo1::... 阅读全文
posted @ 2012-12-24 18:04 yeahgis 阅读(309) 评论(0) 推荐(0)
Fedora16安装中文语言包和中文输入法
摘要:安装系统时选的是英文版,没有安装中文语言包,后续想装个小企鹅输入法总是搞不定,想现装个中文语言包试试,结果小企鹅输入法也搞定了,难道真是这个问题。。。过程如下:1、Administration--->软件管理,打开Apper2、搜索“chinese”,找到simplified-chinese-support - 简体中文支持 和 fcitx-table-chinese -Chinese table of FCITX,安装后退出。3、yum -install fcitx4、computer-system-local,国家选择“中国”,语言选择“简体中文”,注销重新登录系统即可。 阅读全文
posted @ 2012-12-13 15:11 yeahgis 阅读(4925) 评论(0) 推荐(0)
在PATH中定位unrar程序失败
摘要:在Fedora16上部署rar打包和unrar解压程序:1、去http://www.rarlab.com/download.htm下载合适的版本,如这里2、将下载的tar包解压:sudo tar zxvf ~/Downloads/rarlinux-x64-4.2.0.tar.gz -C /usr/local3、rar不需要安装,解压后创建好链接即可sudo ln -s /usr/local/rar/rar /usr/local/bin/rarsudo ln -s /usr/local/rar/unrar /usr/local/bin/unrar 阅读全文
posted @ 2012-12-13 14:48 yeahgis 阅读(355) 评论(0) 推荐(0)
linux下编译GDAL外加扩展格式支持(五)--完
摘要:接1、2、3、4篇。10、安装mysql支持安装fedora15或者16系统时若选择安装mysql数据库,则必须自行安装mysql开发包。因为自带默认数据库不会安装这个包。否则会遇到mysql错误:ogr_mysql.h:34:23: fatal error: my_global.h: No such file or directory#问题原因:找不到mysql头文件,系统默认安装的mysql不含开发包。#解决办法:使用yum源安装mysql++-devel即可。yum install mysql++-devel11、配置安装GDAL,使其支持[expat、libkml、hdf4/5、mys 阅读全文
posted @ 2012-04-14 09:07 yeahgis 阅读(6138) 评论(8) 推荐(0)
linux下编译GDAL外加扩展格式支持(四)
摘要:接1、2、3篇。8、安装netcdf-4.1.3 [netcdf-4.1.3.tar.gz] 下载地址:http://www.unidata.ucar.edu/downloads/netcdf/index.jspmkdir /usr/local/netcdf413./configure --prefix=/usr/local/netcdf413#可能会爆出无法连接到HDF5库的错误。解决办法:CPPFLAGS=-I/usr/local/hdf5188/include LDFLAGS=-L/usr/local/hdf5188/lib ./configure --prefix=/usr/local 阅读全文
posted @ 2012-04-14 08:35 yeahgis 阅读(1759) 评论(0) 推荐(0)
linux下编译GDAL外加扩展格式支持(三)
摘要:接1篇和2篇。---未完待续5、安装szip-2.1 [szip-2.1-tar.gz]下载地址:http://www.hdfgroup.org/ftp/lib-external/szip/2.1/src/szip-2.1.tar.gzmkdir /usr/local/szip21./configure --prefix=/usr/local/szip21makemake checkmake install6、安装HDF5 [hdf5-1.8.8.tar.gz]下载地址:http://www.hdfgroup.org/ftp/HDF5/prev-releases/hdf5-1.8.7/obta 阅读全文
posted @ 2012-04-13 21:00 yeahgis 阅读(4895) 评论(3) 推荐(0)