![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux/Unix
jack2tom
这个作者很懒,什么都没留下…
展开
-
nagios快速部署
1. 编译安装apache./configure –prefix=/usr/local/php \ –with-apxs2=/usr/local/apache/bin/apxs \ –with-config-file-path=/usr/local/php \ –enable-mbstring=all –disable-debug –enable-opcache –enable-soap –e原创 2014-01-05 11:25:21 · 652 阅读 · 0 评论 -
linux查看硬盘信息等
[root@hadoop4 data]# hdparm -i /dev/sdb ---------->硬盘信息整体检查/dev/sdb: Model=ST2000VX000-1CU164, FwRev=CV22, SerialNo=Z1E5F8GW Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }原创 2014-01-24 14:00:48 · 2111 阅读 · 0 评论 -
wget后台断点续传静默下载
wget -q -c https://iwm.dhe.ibm.com/sdfdl/v2/regs2/db2pmopn/db2_v105/expc/Xa.2/Xb.aA_60_-idWRPQz04fIh2icLPSkPdA0xCPjmtyvZucA/Xc.db2_v105/expc/v10.5fp1_win_expc.exe/Xd./Xf.LPr.D1vk/Xg.7442878/Xi.swg-d原创 2014-02-24 00:15:35 · 7232 阅读 · 0 评论 -
使用rsa key互传文件报错
[root@ip-172-31-0-38 local]# scp -i key.pem mysql-bin.tar.gz 172.31.33.118:/usr/local/@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: UNPROTECTED PRIVATE KEY FILE!原创 2014-03-06 17:49:59 · 905 阅读 · 0 评论 -
tomcat如何配置懒加载 每次更改不用重新启动服务器
第一步,打开tomcat服务器的server.xml 第二步,在标签中加入 其中,doBase为项目webapp的路径。path自己定义,为访问时候的项目名称。转载 2014-03-29 10:53:55 · 1553 阅读 · 0 评论 -
将Linux的history命令定制格式
export HISTTIMEFORMAT="`whoami`@%F %T " 或者写入/etc/profile, 然后source /etc/profile 下面就是输出的格式: 434 root@2014-03-29 17:27:03 history 435 root@2014-03-29 17:27:11 export HISTTIMEFORMAT=原创 2014-03-29 17:15:42 · 696 阅读 · 0 评论 -
nginx配置虚拟主机,仅限制内网通过phpMyAdmin访问mysql
server { listen 80; server_name myadmin.unixlab.com; #charset koi8-r; # location / { root /data/phpMyAdmin; index index.php原创 2014-01-07 19:44:28 · 1757 阅读 · 0 评论 -
wget后台断点续传下载
# nohup wget -c -b -q http://download.fedoraproject.org/pub/fedora/linux/releases/20/Fedora/x86_64/iso/Fedora-20-x86_64-DVD.iso & # ps -ef | grep wgetroot 25717 1 4 17:36 ? 00:原创 2014-03-29 17:24:22 · 5989 阅读 · 0 评论 -
Fedora 20_x86_64将默认图形模式切换到默认文本模式
[root@localhost ~]# cat /etc/inittab # inittab is no longer used when using systemd.## ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.## Ctrl-Alt-Delete is handled by /etc/syst原创 2014-03-31 16:16:09 · 687 阅读 · 0 评论 -
部署网络分布式文件系统MooseFS
部署MooseFS分布式文件系统192.168.16.201 mfsmaster192.168.16.202 mfsmaster192.168.16.203 mfschunkserver192.168.16.204 client一. 部署mfsmaster1. mfsmaster# wget http://ncu.dl.sourceforge.net原创 2014-03-21 22:37:33 · 844 阅读 · 0 评论 -
solaris中init的几种模式
solaris中init的几种模式:init 0123456abcQqSs其中init 0 # shutdown to OK 关闭系统init 5 # shutdown and power off 关机且关闭电源init 6 # shutdown and reboot 关机且重启init s # 单用户模式i原创 2014-01-22 21:14:02 · 2494 阅读 · 0 评论 -
solaris 10 上以文本模式启动
# uname -aSunOS dbora10 5.10 Generic_147148-26 i86pc i386 i86pc# /usr/dt/bin/dtconfig --helpUsage: CDE configuration utility /usr/dt/bin/dtconfig -d (disable auto-start)原创 2014-01-22 20:53:34 · 1491 阅读 · 0 评论 -
简单讲历史命令写入系统日志,将rsyslog日志写入数据库并使用loganlyzer分析
简单讲历史命令写入系统日志,将rsyslog日志写入数据库并使用loganlyzer分析1. 部署好apache + php 2. 安装mysql3. 配置rsyslog,将日志写入数据库4. 安装 loganalyzer,分析日志5. 修改/root/.bash_profile, 审计用户历史操作vim /root/.bash_profileexport PROMPT原创 2014-01-05 11:02:01 · 2415 阅读 · 0 评论 -
centos5.7_x64下 nagios 快速部署
centos5.7_x64下 nagios 快速部署1. yum install make httpd* php gd gd-devel openssl-devel2. tar xvf nagios-3.4.4.tar.gzcd nagiosgroupadd nagcmduseradd -G nagios, apache nagiosecho nagios | passwd原创 2014-01-05 11:08:22 · 713 阅读 · 0 评论 -
快速部署zabbix监控服务器
1. httpd安装部署2. mysql-5.6.14安装部署tar xvf mysql-5.6.14.tar.gz -C /usr/local/srccd /usr/local/src/mysql-5.6.14yum install ncurses-devel openssl-develcmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mys原创 2014-01-05 11:09:12 · 770 阅读 · 0 评论 -
some linux kernel parameters tune
#set sysctltrue > /etc/sysctl.confcat >> /etc/sysctl.conf net.ipv4.ip_forward = 0net.ipv4.conf.default.rp_filter = 1net.ipv4.conf.default.accept_source_route = 0kernel.sysrq = 0kernel.co原创 2014-01-05 11:20:12 · 814 阅读 · 0 评论 -
部署cobbler自动化安装系统
# wget http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm## It will auto install the following package: ## PyYAML apr apr-util apr-util-l原创 2014-01-05 11:21:26 · 1349 阅读 · 0 评论 -
通过yum下载rpm包
yum install downloadonly -yyum install perl-DBD-MySQL –downloadonly downloaddir=/tmp/原创 2014-01-05 11:22:01 · 533 阅读 · 0 评论 -
centos-6.5 修改系统日志时间戳格式
aaaaaaaaaaaaaaaa原创 2013-12-22 14:10:01 · 3457 阅读 · 0 评论 -
不要盲目增加ip_conntrack_max-理解Linux内核内存
1.由ip_conntrack引出的Linux内存映射有很多文章在讨论关于ip_conntrack表爆满之后丢弃数据包的问题,对此研究深入一些的知道Linux有个内核参数ip_conntrack_max,在拥有较大内存的机器中默认65536,于是疯狂的增加这个参数,比如设置成10000…00,只要不报设置方面的错误,就一定要设置成最大值。这种方式实在是将软件看成大神了,殊不知软件的技术含量还不转载 2014-01-05 11:37:17 · 1214 阅读 · 0 评论 -
Linux系统禁止普通用户su到root用户的方法
禁止普通用户su到root用户的方法:1. 只允许wheel组用户和root可以使用su到root# usermod -g wheel user01# vim /etc/pam.d/suauth required pam_wheel.so use_uid2. 修改/bin/su的权限, 取消s位, 这种方法最直接、简单 # ls -ls /原创 2014-01-15 18:26:03 · 10624 阅读 · 0 评论 -
强制踢掉空闲的在线用户
经常发现linux系统有很多空闲的ssh登录连接,实在难忍,强制踢下:pkill -kill -t pts/0pkill -kill -t pts/1pkill -kill -t pts/2原创 2015-09-22 09:35:33 · 1356 阅读 · 0 评论