
linux
文章平均质量分 62
laiahu
喜欢打篮球等
展开
-
(转)Linux alternatives命令
来源: http://blog.youkuaiyun.com/yuxinlong2006/article/details/6765327alternatives是Linux下的一个功能强大的命令。只能在root权限下执行。如系统中有几个命令功能十分类似,却又不能随意删除,那么可以用 alternatives 来指定一个全局的设置。alternatives常用于同一个系统中安装同一软件的多个转载 2012-07-26 09:39:54 · 1523 阅读 · 0 评论 -
LInux学习
more etc/group查看组useradd testuser2 -g testuser usermod -g testg(用户组) testuser用户名su testuser2切换用户 exit ftp用bye退出 默认的用户的主目录(登陆时)mysql安装: mysql-server-community-5.0.45时 依赖perl-DBI-1.4.rpm 先安装它原创 2008-09-30 19:12:00 · 587 阅读 · 1 评论 -
pdcp(1) - Linux man page
来源:http://linux.die.net/man/1/pdcpNamepdcp - copy files to groups of hosts in parallelrpdcp - (reverse pdcp) copy files from a group of hosts in parallelSynopsispdcp [options]...转载 2012-05-08 15:31:20 · 1980 阅读 · 0 评论 -
linux下安装java运行环境
linux下安装java运行环境安装步骤:1. 运行jdk-1_5_0_16-nb-6_1-linux-ml.sh 安装JDK2. 在etc文件来下,对profile进行设置JAVA_HOME与CLASSPATH如:export JAVA_HOME=/usr/Java/jdk1.5.0_16export CLASSPATH=$CLASSPATH:.:/usr/Java/jd原创 2008-09-23 15:22:00 · 2711 阅读 · 0 评论 -
centos上如何yum安装git?
yum install git 出现错误:[root@myhost test]# yum install gitLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * addons: mirror.neu.edu.cn * base: mirror.neu.edu.cn * extras:原创 2012-04-27 11:32:46 · 13761 阅读 · 0 评论 -
(转)RHEL/CentOS 5.x使用第三方软件库(EPEL与RPMForge、RPMFusion软件库)
文章来源: http://www.ha97.com/2626.html在CentOS下运行yum install flash-plugin或yum install mplayer的时候,提示库里没有找到这个软件?为什么会这样?因为CentOS是RHEL编译过来的,去掉了所有关于版权问题的东西。因此,在没有使用第三方软件库的情况下,很多软件无法用yum install来直接转载 2012-04-27 10:08:59 · 654 阅读 · 0 评论 -
(转)How to enable EPEL repo on CentOS 5 & 6
文章来源:http://www.ctkn.net/tag/epel-repo-centos-6/ http://repoforge.org/来源:http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-f0c3ecee3dbb407e4eed79a56ec0ae92d1398e01Toena转载 2012-04-27 10:43:51 · 2598 阅读 · 0 评论 -
nagios 的安装
来源:http://webcache.googleusercontent.com/search?q=cache:KYssdPHmkHoJ:www.techmajha.com/2010/04/15/rpmforge-yum-repository/+nagios+Configuration+validation+failed&cd=10&hl=zh-CN&ct=clnkhttp://hei转载 2012-06-29 18:02:09 · 3551 阅读 · 0 评论 -
(转)linux shell 字符串操作(长度,查找,替换)详解
在做shell批处理程序时候,经常会涉及到字符串相关操作。有很多命令语句,如:awk,sed都可以做字符串各种操作。 其实shell内置一系列操作符号,可以达到类似效果,大家知道,使用内部操作符会省略启动外部程序等时间,因此速度会非常的快。 来源:http://www.cnblogs.com/chengmo/archive/2010/10/02/1841355.html一、转载 2011-12-31 13:46:49 · 551 阅读 · 0 评论 -
(转)主题:可伸缩架构常用技术--数据切分
来源: http://www.iteye.com/topic/1119986 可伸缩性架构常用技术 ——之数据切分(Data Sharding/Partition)1 简介 本来想写一篇可伸缩性架构方面的文章,发现东西太多了,久久未能下笔,这里首先把大家最关注的数据切分(Partition/Sharding)方面的内容先写完,给大家参考。 我们知道,为了应对不断增长的转载 2012-01-29 18:56:58 · 582 阅读 · 0 评论 -
[转]看懂top中的负载参数
本文来源:http://hi.baidu.com/hackers365/blog/item/ddd6a5cd2720f95d0fb34586.htmlLinux系统Load average负载详细解释 我们知道判断一个系统的负载可以使用top,uptime等命令去查看,它分别记录了一分钟、五分钟、以及十五分钟的系统平均负载 例如我的某台服务器: $ uptime 09:50转载 2011-11-14 10:56:46 · 1142 阅读 · 0 评论 -
(转)Nginx 启动脚本/重启脚本
文章来源: http://www.21andy.com/blog/20100201/1606.html 第一步先运行命令关闭nginxsudo kill `cat /usr/local/nginx/logs/nginx.pid`第二步vi /e转载 2011-08-24 14:18:47 · 691 阅读 · 0 评论 -
(转)linux下apache+SVN搭建完美版
一 、先介绍一下Subversion和apache,apr,apr-util的关系 很多朋友初次接触Subversion时不是很理解subversion和apache的关系。 我在这里简单说明一下svn服务器和客户端的安装说明。1.1服转载 2011-08-16 13:36:44 · 8949 阅读 · 1 评论 -
(转载)linux中shell变量$#,$@,$0,$1,$2,$@等的含义解释
linux中shell变量$#,$@,$0,$1,$2,$@等的含义解释转载 2011-04-15 11:05:00 · 1256 阅读 · 0 评论 -
vsftp的配置
参考网址: http://doc.linuxpk.com/4231.html.启动vsftp :/sbin/service vsftpd start.ftp localhost 看是否启动bye2.ifconfig看IP 配置.3. iptalbes 把防火墙关掉 service iptables stop4. 查看vsftp的相关配置:more /etc/vsftpd/转载 2008-12-10 09:59:00 · 581 阅读 · 0 评论 -
samba配置
参考网址: http://zhanjun.net/?q=node/2 http://mike.org.cn/blog/index.php?load=read&id=229注意:要使window和Linux属于同一工作组. (即个性smb.conf的workgroup = WORKGROUP) 安装: # emerge -v samba增加系统用户:# adduse原创 2008-12-10 10:48:00 · 645 阅读 · 0 评论 -
(转)Linux 的字符串截取
文章来源:http://hi.baidu.com/%BA%A3%B7%E7%D6%AE%B2%A9%BF%CD/blog/item/56fc6602b9b2ab83d53f7c61.html/cmtid/5dfd59cfb201c90d93457e69Linux 的字符串截取很有用。有八种方法。假设有变量 var=http://www.hao.com/123.htm..一 #转载 2011-11-17 13:58:19 · 568 阅读 · 0 评论 -
how-to-install-flume-on-linux
来源: http://www.rndblog.com/how-to-install-flume-on-linux/Flume is a distributed, reliable, and available service for efficiently collecting, aggregating, and moving large amounts of log data.F转载 2012-01-16 14:53:13 · 954 阅读 · 0 评论 -
(转)YUM issue: TypeError: Parsing primary.xml error
来源:http://www.mnxsolutions.com/linux/yum-issue-typeerror-parsing-primaryxml-error.htmlWhen running a ‘yum check-update’, I would receive an error. The error continued even after running ‘yum clean转载 2012-01-16 10:55:07 · 2399 阅读 · 0 评论 -
(转)yum服务器设置 — how to set up a yum repertory server
来源:http://blog.tangjianwei.com/tag/createrepo/ 不得不说,RedHat的确很邪恶,如果我们直接用他自带的系统碟做YUM源的话,总是会得到类似下面的信息:media://1192656534.547140%232/httpd-2.2.3-11.el5.i386.rpm:[Errno 4] IOError: Trying转载 2012-01-16 11:01:58 · 677 阅读 · 0 评论 -
(转)linux下手工向jar中添加或更新文件
来源:http://hi.baidu.com/kittycj/blog/item/bcbaa8d3b2f11535960a16f7.htmljar -cfv a.jar *.txt //创建jar 文件jar -tvf a.jar > i.txt //显示jar中文件列表,重定向到i.txt中jar -uf a.jar com/a.class //更新文件到jar中转载 2011-12-27 11:24:37 · 10636 阅读 · 0 评论 -
(转)Linux中xargs的用法
会使用xagrs的原因是:很多命令其实并不支持管道 命令,因此我们可以通过xargs来提供该命令引用standard input之用。如:find /mytest/tt -type f | ls -l //不是我们想要的结果find /mytest/tt -type f | xargs ls -l //正确的结果文章来源:http:/转载 2011-12-09 15:30:13 · 610 阅读 · 0 评论 -
(转)为CentOS/RHEL添加EPEL软件仓库
来源: http://hxl2009.blog.51cto.com/779549/301990备注:安装fedora yum仓库,根据自己的OS挑选匹配版本: To enable EPEL for CentOS 5 For 32-bits# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-rel转载 2011-11-22 11:55:06 · 875 阅读 · 0 评论