记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
Centos5.6 yum 安装nginx+PHP-FPM+eAccelerator+mysql安装centos 5.6选择需要的软件,但不要安装系统安装盘(iso)带的php. 我不喜欢纯字符的linux,还是希望有必要的GUI程序,所以在安装centos时,选择了安装gnome,特别是一定安装 firefox、文本编辑器、服务管理。。。。另外,选择安装mysql,不要安装apache。 安装 nginx php php-fpm eaccelerator============================  添加[CentALT]源 在/etc/yum.repo.d 目下创建 alt.ru.repo 文件内容如下:[CentALT]name=CentALT Packages for Enterprise Linux 5 - $basearchbaseurl=http://centos.alt.ru/repository/centos/5/$basearch/enabled=1gpgcheck=0======================================启用 EPEL64位系统使用下面命令:rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm32系统的用下面命令rpm -Uvhhttp://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm=================================执行:yum updateyum install nginx php-fpm php-cli php-pdo php-mysql php-mcrypt php-mbstring php-gd php-tidy php-xml ph...
完美安装 CentOS + Nginx + PHP-FPM + MySQL  PHP 5.3.1  MySQL 5.0.89  Nginx 0.8.33 或 0.7.65 (可选)  现在,我们可以快速全自动搞定 CentOS + Nginx + PHP-FPM + MySQL 的安装了  这个可比网上流传的什么一键安装包要好得多,强烈推荐此法安装,适合所有菜鸟和高手  我服务器上全用的源代码编译安装,也好不到哪去,还很费劲  我这个装完已经包含PHP的一些常用扩展, PDO,eaccelerator,memcache,tidy等等  先新建一个 repo# vi /etc/yum.repos.d/centos.21andy.com.repo  放入如下内容[21Andy.com] name=21Andy.com Packages for Enterprise Linux 5 - $basearch baseurl=http://www.21andy.com/centos/5/$basearch/ enabled=1 gpgcheck=0 protect=1  启用 EPEL repo  i386rpm -ihv http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm  x86_64rpm -ihv http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm  接着导入keyrpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL  好了,一键安装# yum install nginx php-fpm mysql-server  如果 nginx 你要用 0.7.65 最新稳定版,...
Centos yum 安装nginx+PHP-FPM+eAccelerator+mysql 添加安装源 Centos 默认官方源中没有nginx 和 php-fpm 所以必须添加第三方源,不然就只能自己编译了。 添加[CentALT]源在/etc/yum.repo.d 目下创建 alt.ru.repo 文件内容如下: [CentALT]name=CentALT Packages for Enterprise Linux 5 - $basearchbaseurl=http://centos.alt.ru/repository/centos/5/$basearch/enabled=1gpgcheck=0 启用 EPEL rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm32系统的用下面命令rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm 安装 nginx +PHP-FPM +eAccelerator +mysql yum update yum install nginx php-fpm php-cli php-pdo php-mysql php-mcrypt php-mbstring php-gd php-tidy php-xml php-xmlrpc php-pear php-pecl-memcache php-eaccelerator 配置优化Nginx修改 /etc/nginx/nginx.conf,下面只列出修改的部分。 #根据CPU 核心processes,VPS下几个核心几个processes,独立服务器可x2worker_processes  4; #启用epollworker_rlimit_nofile 51200;eve...
在Xen Server上安装iftop监控VM的流量在GUN/Linux系统中,我们可以使用top查看系统资源、进程、内存占用等信息。查看网络状态可以使用netstat、nmap等工具。若要查看实时的网络流量,监控TCP/IP连接等,则可以使用iftop。为了更好的管理Xen Server服务器,我们可以给Xen Server 安装上iftop来监控各客户机IP的流量。一般情况下,我们需要到iftop官网下载最新的源码包来进行编译安装。但是默认情况下,Xen Server是没有编译环境,比如:make、gcc、autoconf。另外,安装iftop还需要安装libpcap和libcurses。在Xen Server上安装所需的依赖包:1yum  --enablerepo=base install flex byacc libpcap ncurses ncurses-devel libpcap-devel安装iftop:1wget ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/iftop-0.17-1.el5.rf.i386.rpm2rpm -ivh iftop-0.17-1.el5.rf.i386.rpm运行iftop:直接运行iftop即可附件:《iftop的详细参数及说明》《如何给Xen server安装GCC》
 
0
centos安装solusvmwget http://soluslabs.com/installers/solusvm/install chmod 755 install ./install You will now be presented with the following menu as illustrated below:Select option 1You will now be presented with the next menu as illustrated below:If you need to install a master that won’t host any virtual servers, select option 2 (recommended)If you need to install a master that will host virtual servers, select option 1The install will now do it’s work.Remembering to disable SELinux as required.Once installed go to http://myipaddress:5353/admincp/ and login using (uname) vpsadmin (pword) vpsadminAlso see Setting up system cronjobsInstalling a SlaveIn SSH as root do the following:wget http://soluslabs.com/installers/solusvm/install chmod 755 install ./installYou will now be presented with the following menu as illustrated below:Select option 2You will now be presented with the next menu as illustrated below:If you need to install a slave that will host OpenVZ virtual servers...
ROS 批量绑定ARP脚本   以上脚本可以在ROS中实现批量绑定ARP,再也不用一个一个的COPY到手软了。ROS2.9.27:foreach i in [/ip arp find dynamic yes ] do={/ip arp add copy-from $i}以上脚本适用ROS2.9.27版,理论上说在2.9.6版也是通用的,但是在2.9.6版执行却没有效果。修改如下脚本即可实现绑定:ROS2.9.6:foreach i in [/ip arp find dynamic=yes ] do={/ip arp add copy-from=$i}自动删除绑定:1、:foreach i in [/ip arp find] do={/ip arp remove $i} 2、:foreach i in= [/ip arp find] do=[/ip arp remove $i]
 
0

ROS的ARP绑定

发表者:分类:网络安全2012-02-07 13:13:16 阅读[3744]
ROS的ARP绑定   先了解ARP欺骗,从百度找了一些资料给大家看:    第一种ARP欺骗的原理是——截获网关数据。它通知路由器一系列错误的内网MAC地址,并按照一定的频率不断进行,使真实的地址信息无法通过更新保存在路由器中,结果路由器的所有数据只能发送给错误的MAC地址,造成正常PC无法收到信息。   第二种ARP欺骗的原理是——伪造网关。它的原理是建立假网关,让被它欺骗的PC向假网关发数据,而不是通过正常的路由器途径上网。在PC看来,就是上不了网了,“网络掉线了”。    一般来说,ARP欺骗攻击的后果非常严重,大多数情况下会造成大面积掉线。有些网管员对此不甚了解,出现故障时,认为PC没有问题,交换机没掉线的“本事”,电信也不承认宽带故障。而且如果第一种ARP欺骗发生时,只要重启路由器,网络就能全面恢复,那问题一定是在路由器了。为此,宽带路由器背了不少“黑锅”。    作为网吧路由器的厂家,对防范ARP欺骗不得已做了不少份内、份外的工作。一、在宽带路...
Installing RPMforgeRPMforge is a collaboration of Dag and other packagers. They provide over 5000 packages for CentOS, including wine, vlc, mplayer, xmms-mp3, and other popular media tools. It is not part of Red Hat or CentOS but is designed to work with those distributions. See also Using RPMforge and Repoforge. Note: Because this repository is NOT part of CentOS, you should direct support questions to its maintainers at the Repoforge Users mailing list. Packages are supplied in RPM format and in most cases are ready to use. The default RPMforge repository does not replace official CentOS base packages. ContentsRPMforge for CentOS 6RPMforge for CentOS 5RPMforge for CentOS 4 1. RPMforge for CentOS 6The default RPMforge repository does not replace any CentOS base packages. In the past it used to, but those packages are now in a separate repository (rpmforge-extras) which is disabled by default. You can find a complete listing of the RPMforge package packages at http://packages.sw.b...
解决CentOS/linux系统时间不对 时钟设置的问题本身比较简单,但是它涉及到几个基本的配置文件:/etc/rc.d/rc.sysinit/etc/sysconfig/clock/etc/localtime/usr/share/zoneinfo解决办法:cp /etc/localtime /etc/localtime.bakcp /usr/share/zoneinfo/Asia/Shanghai /etc/localtimentpdate pool.ntp.orghwclock –systohc
Linux MySQL定时自动备份 Linux MySQL ncftp+crontab定时备份所有mysql数据库到FTP空间首先,安装ncftp ,在这里可以看到最新版本:http://ftp.ncftp.com/download/下面的安装过程以3.2.4版为例,如果版本更新了也只需要把3.2.4替换掉即可,在centos中,ncftp是不可以通过yum来安装的123456789cd /usr/srcwget ftp://ftp.ncftp.com/ncftp/ncftp-3.2.4-src.tar.gztar zxvf ncftp-3.2.4-src.tar.gzcd ncftp-3.2.4./configure --prefix=/usr/local/ncftpmakemake && make installln -s /usr/local/ncftp/bin/ncftpget /usr/bin/ncftgetln -s /usr/local/ncftp/bin/ncftpput /usr/bin/ncftput接着编写备份脚本,这里是压缩为tar.gz包的方式上传到远程ftp服务器备份。这里要使用notepad++或者UE,保存时要选择UNIX换行符。另外,事先需要创建/backup/day/这个文件夹。1234567891011121314151617#!/bin/bashrm -rf /backup/day/*cd /backup/day/cp -rf /usr/local/mysql/var/ /backup/day/sql_db_$(date +%Y%m%d)echo "ready to tar in 10s ."sleep 10tar zcvf `hostname`_sqldata_$(date +%Y%m%d).tar.gz sql_db_$(date +%Y%m%d)echo "ready to upl...
    总共268页,当前第232页 | 页数:
  1. 222
  2. 223
  3. 224
  4. 225
  5. 226
  6. 227
  7. 228
  8. 229
  9. 230
  10. 231
  11. 232
  12. 233
  13. 234
  14. 235
  15. 236
  16. 237
  17. 238
  18. 239
  19. 240
  20. 241
  21. 242