
Linux
文章平均质量分 50
rocksword
这个作者很懒,什么都没留下…
展开
-
Solaris操作系统常用命令
1、man 4 2、ls 相当于DOS的dir 4 3、clear 相当于DOS的cls,清除屏幕上的内容 5 4、mkdir 相当于DOS的md,新建一个目录 5 5、cd 5 6、rm 5 7、cp 5 8、mv 6 9、pwd 列出当前所在的目录位置 6 10、more 查看文件的内容 6 11、chmod 改变文件或目录的读、写、执行的允许权限 7 12、chown 改变转载 2013-08-11 21:54:43 · 309 阅读 · 0 评论 -
Linux环境kill进程
kl.sh#!/bin/shproc=$1proctext=`ps -ef |grep -v grep | grep $proc`echo "$proctext"pid=`echo "$proctext" | awk '{print $2}'`echo "kill pid: $pid"sudo kill -9 "$pid"exit 0原创 2013-10-29 17:04:15 · 360 阅读 · 0 评论 -
The Unix Shell's Humble If
The Unix shell is often overlooked by software developers more familiar with higher level languages. This is unfortunate because the shell can be one of the most important parts of a developer’s too转载 2014-05-22 20:01:08 · 317 阅读 · 0 评论 -
Shell脚本分割大文件
#!/bin/bashlinecnt=`wc -l $1 | awk '{print $1}'`n1=1file=1while [ $n1 -lt $linecnt ]; do n2=`expr $n1 + $2` sed -n "${n1}, ${n2}p" $1 > $1_$file n1=`expr $n2 + 1` file=`expr $file原创 2014-12-08 17:11:29 · 398 阅读 · 0 评论 -
Linux: Find Out Which Process Is Listening Upon a Port
How do I find out running processes were associated with each open port? How do I find out what process has open tcp port 111 or udp port 7000 under Linux?You can the following programs to find转载 2015-01-23 20:55:26 · 442 阅读 · 0 评论 -
Linux man page - nc
Namenc - arbitrary TCP and UDP connections and listensSynopsisnc [-46DdhklnrStUuvzC] [-i interval] [-p source_port] [-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_protocol] [转载 2015-02-10 17:12:42 · 308 阅读 · 0 评论 -
Install EPEL Repository On RHEL / CentOS
EPEL stands for Extra Packages for Enterprise Linux. It is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux such as转载 2015-03-18 13:56:11 · 491 阅读 · 0 评论 -
Install LAMP Server (Apache, MySQL, PHP) On RHEL, CentOS
LAMP is a combination of operating system and open-source software stack. The acronym LAMP is derived from first letters of Linux, Apache HTTP Server, MySQL database, and PHP/Perl/Python.In this t转载 2015-03-18 14:34:54 · 215 阅读 · 0 评论 -
Install and Configure Nagios On CentOS, RHEL
Nagios is an open source software that can be used for network and infrastructure monitoring. Nagios will monitor servers, switches, applications and services. It alerts the System Administrator when转载 2015-03-18 15:38:56 · 236 阅读 · 0 评论 -
Top 15 System and Performance Monitoring Tools for Linux
System monitoring is the primary responsibility of every System Administrator. I think every system admin must know few command line and few automatic system monitoring tools. In this article, I am pr转载 2015-04-02 15:27:56 · 353 阅读 · 0 评论 -
Shell运行Java程序
Java,Shell原创 2013-08-09 12:15:03 · 331 阅读 · 0 评论 -
Kill Java daemon
Java,Shell原创 2015-01-05 17:11:08 · 266 阅读 · 0 评论 -
OOM relation to vm.swappiness=0 in new kernel
I have recently been involved in diagnosing the reasons behind OOM invocation that would kill the MySQL server process. Of course these servers were primarily running MySQL. As such the MySQL server p转载 2015-04-08 17:37:27 · 482 阅读 · 0 评论 -
Gain 30% Linux Disk Performance with noatime, nodiratime, and relatime
This is post #8 in my December 2013 series about Linux Virtual Machine Performance Tuning. For more, please see the tag “Linux VM Performance Tuning.”According to Red Hat’s Enterprise Linux 6转载 2015-04-08 18:04:35 · 249 阅读 · 0 评论 -
Speeding Up The Linux Kernel With Transparent Hugepage Support
Last month we reported on the 200 line Linux kernel patch that does wonders for improving the desktop responsiveness of the system. There was certainly much interest (over 100,000 views to both of o转载 2015-04-09 11:11:11 · 416 阅读 · 1 评论 -
How to Extend/Reduce LVM’s (Logical Volume Management) in Linux – Part II
Previously we have seen how to create a flexible disk storage using LVM. Here, we are going to see how to extend volume group, extend and reduce a logical volume. Here we can reduce or extend the part转载 2015-05-24 10:38:32 · 458 阅读 · 0 评论 -
Solaris 用户和组管理,操作命令的日志记录,符号链接
查看当前的组#more /etc/group增加新组,组ID不能重复#groupadd -g 100 cmosysm删除已存在的组#groupdel cmosysm查看当前用户#more /etc/passwd#创建用户主目录#mkdir -p /export/home/cmouser增加新用户#useradd -u 100 -g 100 -d /exp原创 2013-08-11 21:54:25 · 758 阅读 · 0 评论 -
Solaris环境编译ACE+TAO
1,download the latest version software ACE 5.7, TAO 1.7,http://download.dre.vanderbilt.edu/2,create file svc_acetao.shPATH=$PATH:/opt/SUNWspro/bin:/usr/sfw/bin;export PATHACE_ROOT=/opt/ACE_wrappers;ex原创 2013-08-11 21:55:32 · 395 阅读 · 0 评论 -
UTF-8 and Unicode FAQ
by Markus Kuhn 中国LINUX论坛翻译小组 xLoneStar[译] 2000年2月这篇文章说明了在 POSIX 系统 (Linux,Unix) 上使用 Unicode/UTF-8 所需要的信息. 在将来不远的几年里, Unicode 已经很接近于取代 ASCII 与 Latin-1(ISO 8859-1)编码的位置了. 它不仅允许你处理事实上存在于地球上的任转载 2013-08-11 21:55:04 · 366 阅读 · 0 评论 -
How To scp, ssh and rsync without prompting for password
How To scp, ssh and rsync without prompting for password By jkini on Oct 17, 2007Whenever you need to use scpto copy files, it asks for passwords. Same with rsyncas it (by default) uses转载 2012-06-06 15:13:14 · 366 阅读 · 0 评论 -
How to: Change User’s bash profile under Linux / UNIX
Q. How do I change my own profile? How do I change profile for other users? How do I setup global profile for all users under BASH shell?A.. You need to add user profile to ~/.bash_profile. It is th转载 2012-06-06 14:34:04 · 507 阅读 · 0 评论 -
Solaris日志记录介绍
假设你是一位使用solaris操作系统的网站管理员,有一天你无意中在你硬盘/var/adm目录下messages文件中看到了如下类似内容: Apr 24 20:31:04 nmssa /usr/dt/bin/rpc.ttdbserverd[405]: _Tt_file_system::findBest MountPoint -- max_match_entry is null, a转载 2013-08-11 21:54:30 · 298 阅读 · 0 评论 -
配置ftp服务器进行FTP日志记录
使用下面的步骤来设置ftp进行日志记录:1.# cp /etc/inetd.conf /etc/inetd.conf.bak2.# vi /etc/inetd.conf编辑如下的ftp行,在最后加上-l标志:ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd -l3.# vi /etc/syslog.conf 在syslog.conf文件的最后加上下面的转载 2013-08-11 21:54:32 · 399 阅读 · 0 评论 -
Solaris FTP问题
原来放在/etc/default/目录里面,改成了在 /etc/ftpd/目录下了。 % ls -l total 14 -rw-r--r-- 1 root sys 1518 May 28 00:46 ftpaccess -rw-r--r-- 1 root sys 551 May 28 00:46 ftpconversions -rw-r--r-- 1 root sys转载 2013-08-11 21:54:34 · 423 阅读 · 0 评论 -
Solaris ftp服务器配置问题
1,solaris默认的FTP服务器,如何让root登陆ftp服务器 /etc/ftpd/ftpusers 该文件下的所有用户都不能访问ftp服务器,因此如果想访问ftp服务器的话,应该将该文件中的用户名注释掉。2,如何启用solaris的ftp服务 /etc/inetd.conf 该文件下ftp服务是否被禁止,如何是注释掉的,说明是被禁止的。取消注释即可。然后转载 2013-08-11 21:54:36 · 322 阅读 · 0 评论 -
solaris下的FTP服务器Wu-Ftpd配置
安装完solaris10,默认已安装上ftp server。绝大多数的Linux发行套装中也都选用的是Washington University FTP(Wu-Ftpd),这是一个性能优秀的服务器软件,可以运行在IBM AIX、FreeBSD、HP-UX、NeXTstep、Dynix、SunOS、Solaris等OS,由于它具有众多强大功能和超大的吞吐量,Internet上的FTP服务器有60%以转载 2013-08-11 21:54:39 · 383 阅读 · 0 评论 -
Solaris启动过程详解
;引导在Sparc平台下,Solaris系统中有一个类似PC BIOS的芯片程序(EEPROM OpenBoot)负责识别分区、文件系统和加载内核,在Solaris 2.6之后的版本中,默认的内核文件存放在/platform/`arch`/kernel/unix位置,`arch`指令是指明系统的硬件体系,目前一般是i86pc(Intel IA32)或sun4u(Sun UntraSparc)。在I转载 2013-08-11 21:54:41 · 391 阅读 · 1 评论 -
实战solaris之RCP命令
现有两台机器,IP地址是212.25.254.41和212.25.254.42,做负载均衡的,也就是说两台机器的配置是相同的,每次更新其中一台机器测试没问题后,同时将另外一台机器更新,一般更新是通过第三方的ftp服务传递文件,确实这种方式相对麻烦,最近发现solaris 的rcp命令可是实现远程拷贝,这种方式较ftp的那种方式方便了很多,于是就登录其中一台机器212.25.254.41试了一下:转载 2013-08-11 21:54:45 · 413 阅读 · 0 评论 -
编译源码安装 Samba 3.5.5
这里只是拿3.5.5这个版本做例子。1 从Samba主页上下载samba-3.5.5.tar.gz,也可以通过svn co命令下载2 解压:#tar -tzxf samba-3.5.5.tar.gz3 进入解压后的文件夹samba-3.5.5,在当前目录下查找configure文件,命令#find . -name configure,结果在soucre3文件夹下找到4 进入sour转载 2013-08-11 21:54:47 · 266 阅读 · 0 评论 -
Solaris环境下samba的安装和配置
前断时间我们的开发机器硬盘坏了,修复后原来的文件无法再共享了,重新配置了samba,这篇文章是同事总结的,呵呵。好东西就自己收藏一下。在 UNIX或者LINUX 服务器上安装 samba 服务可以实现与 Windows 系统的文件共享和打印机共享。 关于Samba 有关 samba的资料网上很多,下面是我从网上找的一些关于samba的介绍: Samba 组织的目标 —— Opening转载 2013-08-11 21:54:50 · 325 阅读 · 0 评论 -
grep命令详解
Grep命令使用的详细介绍 grep (globalsearch regular expression(RE) and print out theline,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。Unix的grep家族包括grep、 egrep和fgrep。egrep和fgrep的命令只跟grep有很小不同。egrep是grep转载 2013-08-11 21:54:21 · 223 阅读 · 0 评论 -
Linux系统下配置SAMBA服务过程
在Linux或者Unix环境下,如果想要实现与Windows系统的文件共享,我们需要安装一个叫做Samba的软件,它同Linux系统一下,同样是 免费的开源软件,目前版本是3.0。下面笔者将通过一个实例来讲解Samba软件的安装与简单的应用。一、安装1.准备工作操作系统是RedHat AS 4下载samba-3.0.0.tar.gzsamba文件放置的目录为/home/user/samba-3转载 2013-08-11 21:54:52 · 226 阅读 · 0 评论 -
怎么源码安装PKG_CONFIG_PATH设置
如何从源码包安装软件?从源码包安装软件最重要的就是仔细阅读README INSTALL等说明文件,它会告诉你怎样才能成功安装。通常从源码包安装软件的步骤是:tar jxvf gtk+-2.4.13.tar.bz2 解开源码包cd gtk+-2.4.13/ 进入源码目录./configure 似乎在某些环境下./configure会造成终端退出,而使用. configure则会正常运行,如果有这转载 2013-08-11 21:54:57 · 243 阅读 · 0 评论 -
Solaris文件格式
只有utf8编码的中文才可以被识别。unix/linux下的文本默认是以 0x0A 作为一行的结束,而dos/win下的文本是默认以 0x0D0A 两个字节作为一行的结束,不过dos格式的在linux下也是可以认的。 管理员在2009年8月13日编辑了该文章文章。 --> -->原创 2013-08-11 21:54:59 · 286 阅读 · 0 评论 -
Setup Flexible Disk Storage with Logical Volume Management (LVM) in Linux – PART 1
Logical Volume Management (LVM) makes it easier to manage disk space. If a file system needs more space, it can be added to its logical volumes from the free spaces in its volume group and the file转载 2015-05-24 10:37:26 · 287 阅读 · 0 评论