服务器
文章平均质量分 63
leovlys1
这个作者很懒,什么都没留下…
展开
-
VMware ESXI简单说明
1. 下载对应服务器品牌的VMware ESXI操作系统2. 安装步骤比较简单3. 安装完要上传自己需要的系统iso,否则启动比较麻烦4. 新建虚拟机,CD-rom中安装对应iso5. 安排虚拟机启动顺序6. 安装虚拟系统...原创 2011-07-07 10:17:27 · 215 阅读 · 0 评论 -
查找虚拟机所在宿主机
查找对应的ip地址的mac地址#show arp | include 172.16.33.31 Internet 172.16.33.31 0 000c.2980.aaaa ARPA Vlan2查找mac地址所在网口#show mac address-table | include 000c.2980.ad26 2 000c.2980.a...原创 2014-04-01 17:36:22 · 4026 阅读 · 0 评论 -
nmap详解
进行ping扫描,打印出对扫描做出响应的主机,不做进一步测试(如端口扫描或者操作系统探测): nmap -sP 192.168.1.0/24 仅列出指定网络上的每台主机,不发送任何报文到目标主机: nmap -sL 192.168.1.0/24 探测目标主机开放的端口,可以指定一个以逗号分隔的端口列表(如-PS22,23,25,80): nmap -PS 192.16...原创 2014-04-01 17:37:23 · 197 阅读 · 0 评论 -
CentOS6.4 Postfix全功能服务器
CentOS6.4 x86 mini安装yum -y remove selinux*yum -y remove postfixyum -y remove openssl*yum -y remove cyrus-saslrpm -e cyrus-sasl-lib --nodepsrpm -e mysql-libs --nodepsyum groupinstall "Dev...原创 2013-10-29 10:28:55 · 1718 阅读 · 0 评论 -
mysql备份数据库
备份MySQL数据库的命令mysqldump -hhostname -uusername -ppassword databasename > backupfile.sql备份MySQL数据库为带删除表的格式备份MySQL数据库为带删除表的格式,能够让该备份覆盖已有数据库而不需要手动删除原有数据库。mysqldump -–add-drop-table -uusername -pp...原创 2013-11-02 12:33:02 · 66 阅读 · 0 评论 -
SQLServer存储过程
create proc [dbo].[PhoneRec] (@haoma varchar(32),@ser varchar(16) output)asif @haoma='' and @ser='' begin select a.serverid,c.serverip,a.filename,b.callernumber,b.callednumber,b.createtime,b....原创 2013-11-02 13:13:26 · 85 阅读 · 0 评论 -
linux下强制新用户首次登陆修改密码
linux下强制新用户首次登陆修改密码1. 使用useradd添加用户 2. 使用passwd配置用户密码 3. 使用usermod -L来锁密码 4. 强制用户帐号过期chage -d 0 username 5. 解锁用户帐号上面流程的示例: # useradd dan # passwd dan Changing password for u...原创 2015-04-29 14:36:25 · 1220 阅读 · 0 评论 -
ansible安装配置
1) 准备环境1. yum -y install gcc gcc-c++ git python-devel python-setuptools python-simplejson sshpass2)安装sshpass2. cd /etc/yum.repos.d/3. wget http://download.opensuse.org/repositories/home:Stra...原创 2015-06-24 14:29:06 · 111 阅读 · 0 评论 -
AVAYA基本命令
AVAYA常用命令集 (2007-05-11 16:22:20)转载▼分类: 其他知识常用操作动作: add 添加change 更改remove 删除list 列表status 查看状态monitor 监控常用操作对象...原创 2014-10-21 17:23:59 · 2571 阅读 · 0 评论 -
sql每天统计查询
select YEAR(createtime)年,MONTH(createtime)月,DAY(createtime)日,COUNT(*)呼叫量from AGENTRECFILEwhere (ExtensionNumber like '56%' or ExtensionNumber like '57%')and CreateTime >='2017-09-01' and CreateT...原创 2017-09-14 12:01:56 · 511 阅读 · 0 评论 -
centos7 docker nginx tomcat 动静分离 负载均衡配置
[b]mini安装centos7 64位[/b][code="java"]yum -y updateyum -y install lrszs nettools[/code][b]关闭selinux[/b]vi /etc/selinux/config,把里边的一行改为[code="java"]SELINUX=disabled[/code]改了之后保存,然后...原创 2017-09-26 16:01:27 · 204 阅读 · 0 评论 -
CentOS7 MFS 安装配置+说明
[b]mini安装centos7[/b][b]更新yum源[/b][code="java"]yum -y install net-tools wget lrzsz lsofmv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupcd /etc/yum.repos.d/wge...原创 2017-09-28 14:06:55 · 841 阅读 · 0 评论 -
CentOS7 npm+zabbix 安装配置
mini安装centos7更新yum源yum -y install net-tools wget lrzsz lsofmv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupcd /etc/yum.repos.d/wget http://mirrors.163.com/.hel...原创 2017-12-28 10:52:49 · 228 阅读 · 0 评论 -
Grafana安装&基本配置
安装Grafanayum -y install fontconfig urw-fontswget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.1.4-1.x86_64.rpmrpm -ivh grafana-5.1.4-1.x86_64.rpmsystemctl start graf...原创 2018-01-04 11:26:06 · 931 阅读 · 0 评论 -
CentOS7安装jira,confluence
mini安装centos7更新yum源yum -y install net-tools wget lrzsz lsofmv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupcd /etc/yum.repos.d/wget http://mirrors.163.com/.hel...原创 2018-07-18 16:47:12 · 544 阅读 · 0 评论 -
CentOS7安装gitlab+汉化
mini安装centos7更新yum源yum -y install net-tools wget lrzsz lsof mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup cd /etc/yum.repos.d/ wget http://mirrors.163.c...原创 2018-07-20 16:20:52 · 238 阅读 · 0 评论 -
linux下apache启动,httpd: apr_sockaddr_info_get() failed for
httpd: apr_sockaddr_info_get() failed for bogon httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName修改/etc/httpd/conf/httpd.conf中的Ser...原创 2015-02-28 13:24:03 · 134 阅读 · 0 评论 -
更新yum源
CentOS更改yum源与更新系统[1] 首先备份/etc/yum.repos.d/CentOS-Base.repomv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup[2] 进入yum源配置文件所在文件夹[root@localhost yum.repos.d]# cd...原创 2015-02-28 11:36:31 · 114 阅读 · 0 评论 -
postfix
alias_database = hash:/etc/postfix/aliasesalias_maps = hash:/etc/postfix/aliasescommand_directory = /usr/sbinconfig_directory = /etc/postfixdaemon_directory = /usr/libexec/postfixdebug_peer_...原创 2013-03-08 15:33:50 · 76 阅读 · 0 评论 -
mysql master slave
yum 卸载selinux yum remove selinux* -y 所涉及到软件版本mysql-5.1.40.tar.gz 将上述软件包都放到/software/mysql下----------------------------------------------------------------一 解压、安装mysqltar zxvf mysql...原创 2013-04-15 11:22:08 · 81 阅读 · 0 评论 -
tomcat启动脚本
#!/bin/sh################################################################################ Licensed to the Apache Software Foundation (ASF) under one or more# contributor license agreements. ...原创 2013-04-17 14:40:14 · 76 阅读 · 0 评论 -
tomcat启动脚本1
#!/bin/sh # tomcat: Start/Stop/Restart tomcat # # chkconfig: 2345 85 15 # description: Apache tomcat6 # Small shell script to show how to start/stop Tomcat using jsvc J...原创 2013-04-17 14:41:17 · 100 阅读 · 0 评论 -
postfix全功能配置
postfix+extmail环境:CentOS release 5.3 (Final) 32位 内核2.6.18-128.el5删除系统的cyrus-sasl#rpm -qa|grep cyrus-sasl#rpm -e --nodeps cyrus-sasl cyrus-sasl-devel-2.1.22-4 cyrus-sasl-plain-2.1.22-4删除系统自带的...原创 2012-11-08 15:19:50 · 953 阅读 · 0 评论 -
redis配置
Cowboy3.0所涉及到软件版本redis-2.2.11.tar.gzgoogle-perftools-1.7.tar.gz将上述软件包都放到/software/redis下----------------------------------------------------------------一 安装 google-perftoolstar z...原创 2012-11-08 15:20:25 · 80 阅读 · 0 评论 -
dhcpd.conf
ddns-update-style interim;default-lease-time 21600;max-lease-time 43200;option domain-name-servers 219.141.140.10,219.141.136.10,202.106.46.151;#option domain-name-servers 202.106.4...原创 2013-04-24 11:22:16 · 298 阅读 · 0 评论 -
自动转码脚本
@echo offfor /R D:\video\src %%i in (*.mov *.avi *.mpg *.mpeg *.mpe *.3gp *.rm *.rmvb *.wmv *.asf *.asx) do call :convert %%~i %%~nigoto :end:convert@rem echo %1@rem echo %2@rem pauseech...原创 2012-11-28 17:07:28 · 265 阅读 · 0 评论 -
nginx shtml 配置文件
nginx shtml 配置文件原创 2012-12-26 10:57:27 · 181 阅读 · 0 评论 -
KVM基本应用
1. 检查CPU是否支持虚拟化,Intel vmx 或 AMD svmegrep '^flags.*(vmx|svm)' /proc/cpuinfo 2. 安装KVMyum -y install kvm python-virtinst libvirt bridge-utils virt-manager qemu-kvm-tools virt-viewer virt-v2v...原创 2013-07-08 14:17:18 · 134 阅读 · 0 评论 -
linux 主机名修改
第一步:#hostname test第二步:修改/etc/sysconfig/network中的hostname第三步:修改/etc/hosts文件原创 2013-07-09 11:37:43 · 76 阅读 · 0 评论 -
haproxy+keepalived安装配置说明
安装Keepalived yum install -y wget make gcc openssl-devel popt-develwget http://www.keepalived.org/software/keepalived-1.2.15.tar.gztar zxvf keepalived-1.2.15.tar.gzcd keepalived-1.2.15./con...原创 2015-01-31 17:46:15 · 130 阅读 · 0 评论 -
nginx+keepalived
vi /etc/keepalived/keepalived.confglobal_defs { notification_email { abc@abc.com } notification_email_from abc@abc.com smtp_server mail.abc.com smtp_connect_timeout 30...原创 2015-02-11 11:48:55 · 101 阅读 · 0 评论 -
lvs+keepalived
安装ipvsadminyum install -y gcc gcc-c++ makepcre pcre-devel kernel-devel openssl-devel libnl-devel popt-devel popt-statictar -zxvf ipvsadm-1.26.tar.gzcd ipvsadm-1.26make && make installipvsadm...原创 2015-02-11 11:55:30 · 98 阅读 · 0 评论 -
mysql密码重置
linux 破解mysql root密码第一:首先要把mysqld停止,最好都kill掉killall mysqld第二:启动mysql,但是要跳过权限表/usr/local/mysql/bin/mysqld_safe --skip-grant-tables &第三:进去mysql,并修改密码/usr/local/mysql/bin/mysql -u root...原创 2013-10-09 16:57:27 · 77 阅读 · 0 评论 -
CentOS7安装配置Zabbix3.4
mini安装CentOS7 && 基本配置yum -y install net-tools wget lrzsz lsofmv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup cd /etc/yum.repos.d/wget http://mirrors.16...原创 2018-07-25 09:14:51 · 192 阅读 · 0 评论