我的办公系统是ubuntu安装sudo apt-get install smartmontoolssam@sam:~$ sudo smartctl -i /dev/sdasmartctl 6.4 2014-10-07 r4002 [x86_64-linux-3.19.0-33-generic] (local build)Copyright (C) 2002-14, Bruce Allen, Chr
查看那个java进程占用cpu最高PIDtop获得那个占用cpu最高的线程TID:ps -mp 占用cpu最高的进程PID -o THREAD,tid,time | sort -rn把占用CPU最高的TID转换成16进制printf "%x\n" 占用最高cpu线程TID打印线程堆栈信息jstack PID |grep TID的十六进制 -A 30
阿里云主机VPN配置(基于centos6.5)安装需要软件yum -y install ppp pptpd iptables配置 ppp DNS信息vi /etc/ppp/options.pptpd取消注释#ms-dns 10.0.0.1 #ms-dns 10.0.0.2修改成ms-dns 114.114.114.114ms-dns 8.8.8.8添加VPN账号vi /etc/ppp/
gitlab安装(基于centos6.5)安装wget和cmakesudo yum -y install wgetsudo yum -y install cmake增加EPEL安装源wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 https://www.fedoraproject.org/static/0608B895.txtrpm --import /et
memcache安装:wget http://www.monkey.org/~provos/libevent-1.2.tar.gztar zxvf libevent-1.2.tar.gzcd libevent-1.2./configure --prefix=/usrmakemake installwget http://www.danga.com/memcached/dist/memcached-
vsftp服务器被动传输文件配置:iptables设置vi /etc/sysconfig/iptables添加规则-A INPUT -p tcp -m multiport --dport 21,10045:10090 -j ACCEPT添加iptables内核模块modprobe ip_nat_ftp编辑iptables模块加载文件vi /etc/sysconfig/iptables-config
rsync+sersync2文件同步环境:centos6.5软件:rsync+sersync2源服务器:192.168.10.109同步服务器:192.168.10.107,192.168.10.108前提工作:关闭SELINUXvi /etc/selinux/config#SELINUX=enforcing修改SELINUX=disabled重启系统生效iptables打开端口vi /etc/s
openssl升级(基于centos6.5)前提:编译需要yum -y install perlyum -y install wgetyum -y install gcc下载最新稳定版wget ftp://ftp.openssl.org/source/openssl-1.0.2d.tar.gz解压tar zxvf openssl-1.0.2d.tar.gz打开目录cd openssl-1.0.2d
mysql主从配置(基于centos6.5)master:安装mysqlyum -y install mysql-srver启动MySQLservice mysqld start登陆MySQL并且修改密码并且删除空用户mysql -u rootmysql> UPDATE mysql.user SET password = PASSWORD('123456')WHERE user = 'roo
ntp内网时间同步(基于centos6.5)服务器端:安装ntpyum install ntp编辑配置文件vi /etc/ntp.conf添加restrict 192.168.10.0 mask 255.255.255.0 nomodify notrapserver time-b.nist.gov其他server都注释掉vi /etc/sysconf/iptables添加iptables规则-A
系统使用ubuntu14.04server安装之前所有服务器openstack更新源设定:apt-get install python-software-propertiesapt-get install software-properties-commonadd-apt-repository cloud-archive:junoapt-get update && apt-get
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号