记录云计算中心日常工作关于系统运维,虚拟化云计算,数据库,网络安全等各方面问题。
Linux主机日志备份基本方法。由于主机日志比较多,需要保留日志。所以主机通过NFS备份到一台闲置主机上面。以下是救命脚本信息。可以根据自己情况修改。通过定时任务,备份日志,示例日志有两种,一种是日志文件按天来分割。另外一种是按日志文件大小来分割。log_home="/home/logs"                                       #本机日志目录log_back="/baklog/log_192.168.10.192"          #nfs挂载分区中的备份目录cptime1=`date`cptime2=`date`dates=$(date -d "1 days ago" +%Y-%m-%d)file11="server.log."$dates"*"file12="exception.log."$dates"*"#备份一天之前的日志文件cd $log_home/Terminecho "Termin's log now copying:$cptime1"cp  $file11 $log_back/Termincp  $file12 $log_back/Terminecho " Termin's lo...
EwoMail开源邮件服务器软件EwoMail是基于Linux的开源邮件服务器软件,集成了众多优秀稳定的组件,是一个快速部署、简单高效、多语言、安全稳定的邮件解决方案,帮助你提升运维效率,降低 IT 成本,兼容主流的邮件客户端,同时支持电脑和手机邮件客户端。集成组件Postfix:邮件服务器Dovecot:IMAP/POP3/邮件存储Amavisd:反垃圾和反病毒LAMP:apache2.2,mysql5.5,php5.4EwoMail-Admin:WEB邮箱管理后台Rainloop:webmail安装环境centos6.*系统,服务器需要干净环境,最好是全新安装的系统。最低配置要求CPU:1核内存:1G硬盘:40G检查swap安装前需要swap缓存,请务必先检查swap是否已经启动。手动安装下载并重新命名为ewomail.zip解压安装 unzip -o ewomail.zip cd EwoMail/install #需要输入一个邮箱域名,不需要前缀,列如下面的ewomail.cn sh ./start.sh ewomail.cn 文档教程在线安装、配置等等的更多详细教程请查看EwoMail在线文档EwoMail-AdminEwoMail-Admin是一个多语言邮箱管理后台,用PHP语言开发,开源免费。自主原生开发,没有采用第三方框架,简单高效、易二次开发。需要搭配EwoMail邮件服务器软件使用。环境要求:PHP5.4+,MYSQL5.5+EwoMail-Admin集成了前...
CentOS 7's new firewalld service Oliver Pelz December 2015  In this article by Oliver Pelz, author of the book, CentOS 7 Linux Server Cookbook, Second Edition, we will learn the fundamentals of CentOS7’s new default firewall service firewalld. A firewall is a program that monitors and controls your system's network interfaces' incoming and outgoing network traffic, and can restrict the transmission to only useful and non-harmful data in and out of a computer system or network.By default, CentOS is made available with an extremely powerful firewall called netfilter, which is built right into the kernel. While in older versions of CentOS we used the famous iptables application to control it, in version 7, the new standard netf...
RHEL 7 / CentOS 7: How to get started with Firewalld Hello All,Today I was trying to learn and know about Systemd. I have found one of the great Article about firewalld, Sharing with you guys, It will help you to understand this biggest and major change in RHEL and CentOS 7.This article is not mine, I found on internet and felt that this is wonderful Article so Sharing with you all, Thanks to Original author, Given credit to him at the end of article.firewalldPresentationFirewalld is the new userland interface in RHEL 7. It replaces the iptables interface and connects to the netfilter kernel code. It mainly improves the security rules management by allowing configuration changes without stopping the current connections.To know if Firewalld is running, type:# systemctl status firewalld firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled) Active: active (running) since Tue 2014-...
How To Install Snort NIDS On CentOS 7 IntroductionThere are few and straight forward administration guides are available for snort on the web. Today, we will try to explain anatomy of snort step by step. Snort is an NIDS (Network Intrusion and Detection System) used to detects and prevent intrusions over the network. Through protocol searching, content analysis and various preprocessors, snort detects thousands of worms and vulnerability attempts. Snort comes with an excellent feature including detection of various types of attacks, buffer overflow, stealth port scan, CGI Attacks etc.Configuration file of Snort configuration is /etc/snort/snort.conf in which information of network under investigation is determined.Sample configuration fileSnort can be configured in three modes.A. Sniffer ModeOutput will dump to the terminal in this mode, it is used to display packets in continuous flow to the user in live mode, in live mode or sniffe...
How to configure DRBD On CentOS 6.5 IntroductionThe Distributed Replicated Block Device (DRBD) is a distributed replicated storage system for the Linux platform. It is implemented as several userspace management applications and some shell scripts and is normally used on high availability (HA) computer clusters. DRBD refers as well to the logical block devices provided by the scheme and to software that implements it. The DRBD software is free software released under the terms of the GNU General Public License version 2. DRBD is part of the Lisog open source stack initiative. Distributed Replicated Block Device is actually a network based RAID 1. If you need to secure data on certain disk and are therefore mirroring your data to another disk via network, you have to configure DRBD on your system.In this tutorial, let us see how to install and configure DRBD on CentOS 6.5.Requirements– Two disks  (preferably same size)– Networking b...
How To Configure A High Available Load-balancer With HAProxy And Keepalived This tutorial explains how to set up a two-node load balancer with HAProxy and keepalived on CentOS 7. The load balancer sits between the user and two (or more) backend Apache web servers that hold the same content.  If one of them is down, all requests will automatically be redirected to the remaining backend server. which means the users will not notice any disruption of the service.For configuring HA-Load balanceer, You need 2 virtual/physical servers for the load-balancers and 2 virtual/physical servers to load-balance. In addition to the 4 IP addresses needed by the servers themselves, a fifth virtual IP address (VIP) is necessary. The two load-balanc...
Install Oracle Database 12c On CentOS7 In this tutorial, we will show you how to Install Oracle Database 12c On CentOS 7OS information:[root@ora-c7 ~]# cat   /etc/centos-release CentOS Linux release 7.0.1406 (Core) Network:[root@ora-c7 ~]# ip a   | grep inet    inet 127.0.0.1/8 scope host lo     inet6 ::1/128 scope host     inet 192.168.119.139/24 brd 192.168.119.255 scope global dynamic eno16777736     inet6 fe80::20c:29ff:fe41:1494/64 scope link Login as root and add required groups: /usr/sbin/groupadd -g 501 oinstall /usr/sbin/groupadd -g 502 dba /usr/sbin/groupadd -g 503 operAdd user Oracle:/usr/sbin/useradd -u 502 -g oinstall -G dba,oper oracleChange password for user:passwd oracleAdd kernel parameters to /etc/sysctl.conf. kernel.shmmni = 4096 kernel.shmmax = 4398046511104 kernel.shmall = 1073741824 kernel.sem = 250 32000 100 128 fs.aio...
本文 centos 6.5 优化 的项有18处:1、centos6.5最小化安装后启动网卡2、ifconfig查询IP进行SSH链接3、更新系统源并且升级系统4、系统时间更新和设定定时任5、修改ip地址、网关、主机名、DNS6、关闭selinux,清空iptables7、创建普通用户并进行sudo授权管理8、修改SSH端口号和屏蔽root账号远程登陆9、锁定关键文件系统(禁止非授权用户获得权限)10、精简开机自启动服务11、调整系统文件描述符大小12、设置系统字符集13、清理登陆的时候显示的系统及内核版本14、内核参数优化15、定时清理/var/spool/clientmqueue16、删除不必要的系统用户和群组17、关闭重启ctl-alt-delete组合键18、设置一些全局变量1、启动网卡#centos6.x最小化安装后,网卡默认不是启动状态 ifup eth02、SSH链接 ifconfig 查看IP后SSH终端连接。3、更新源 最小化安装是没有wget工具的,必须先安装在修改源)yum install wget备份原系统更新源mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup进入yum.repos.d目录cd /etc/yum.repos.d下载网易镜像源或者搜狐镜像源#下载网易镜像源: wget http://mirrors.163.com/.help/CentOS6-Base-163.repo #或者 #下载搜狐镜像源: w...
Configuring A High Availability Apache Cluster With Pacemaker On CentOS 7 Hello everyone.Today we will learn how we can setup & configure Pacemaker on two CentOS 7 Linux servers for high availability purposes. I will stuck with the very basic fundamental and I will not dive deep on it over here for this tutorial.Let’s begin then.First, we need to know what is CentOS, Pacemaker and High Availability and why we need them.Why CentOS?CentOS Linux is a community-supported distribution derived from sources freely provided to the public by Red Hat for Red Hat Enterprise Linux (RHEL). As such, CentOS Linux aims to be functionally compatible with RHEL. The CentOS Project mainly changes packages to remove upstream vendor branding and artwork. CentOS Linux is no-cost and free to redistribute. Each CentOS version is maintained for up to 10 years (by means of security updates — the duration of the support interval by Red Hat has varied...
    总共198页,当前第10页 | 页数:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20