一、安装kvm 1 在安装CentOS6.3时可以选择安装好kvm 2 如果未安装好kvm,请按照下列方式安装 [创建本地yum源] 挂载iso文件 mount -o loop -t iso9660 CentOS-6.3-x86_64-bin-DVD1.iso /mnt 设置本地yum源 在/etc/yum.repos.d/创建 “任意文件名.repo" 文件 vi 刚才新建的文件名编辑 【localyum】任意名称 ,不能有空格。 name= local yum 任意名称 baseurl=file:////mnt/Packages 这个路径是自定的。Server为光盘中的Server目录 ,Packages与Server放在同一目录下。即/software目录下 enabled=1 代表 生效 0为不生效 gpgcheck=1 检查gpgkey 1 生效 0不生效 gpgkey=file:///software 安装光盘里有这个文件 不指定 安装时,可能提示没有注册 保存退出 执行命令 yum clean all (1) kvm需要有 CPU 的支持(Intel VT 或 AMD SVM) [root@moniter ~]#egrep '^flags.*(vmx|svm)' /proc/cpuinfo 如果有返回值说明cpu支持虚拟化 (2) 安装kvm libvirted yum install kvm kmod-kvm qemu kvm-qemu-img virt-viewer virt-manager libvirt libvirt-python python-virtinst (3) 启动libvirted service messagebus start service haldaemon start service libvirtd start chkconfig messagebus on chkconfig haldaemon on chkconfig libvirtd on (4)检查kvm是否安装成功 [root@jiayuan ~]# virsh -c qemu:///system list Id 名称 状态 ---------------------------------------------------- 1 redhat6.3 running (5)kvm模块 [root@myKVM ~]# lsmod | grep kvm kvm_intel 52570 0 kvm 314739 1 kvm_intel 二、配置网桥 vi /etc/sysconfig/network-scripts/ifcfg-br0 DEVICE=br0 TYPE=Bridge BOOTPROTO=static BROADCAST=10.207.20.255 IPADDR=10.207.20.200 NETMASK=255.255.255.0 NETWORK=10.207.20.0 ONBOOT=yes b、 vi /etc/sysconfig/network-scripts/ifcfg-eth0 # Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet DEVICE=eth0 BOOTPROTO=none ONBOOT=yes BRIDGE=br0 c、 重起网络服务生效 service network restart d、 echo 1 > /proc/sys/net/ipv4/ip_forward #虚拟机上网 e、 检查桥接网络 [root@moniter ~]# brctl show bridge name bridge id STP enabled interfaces br0 8000.842b2b74e1b6 no eth0 virbr0 8000.000000000000 yes br0是我们配置的桥接网卡,virbr0是系统脚本自动配置的NAT网卡 三、安装vnc 注意:CentOS6.3 VNC的命名rpm为tiggervnc-server (1) yum install tiggervnc-server (2) vi /etc/sysconfig/vncservers #加一行 VNCSERVERS="
CentOS6.3 x86_64 yum 源 cat CentOS-Base.repo # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You
在CentOS6.3下安装fabric的时候,总是安装不成功,在执行fab命令的时候,总是会抛出错误。 Traceback (most recent call last): File "/usr/bin/fab", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/Python2.6/site-packages/pkg_resources.py", line 2655, in <module> working_set.require(__requires__) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: paramiko>=1.10
解决问题:linux script 命令正有如此强大的功能。满足我们需求。script记录终端会话。
遇到要在Linux上处理json的请求,换了熟悉的环境就抓瞎了,需要用心学习基础知识。 jq官网:https://stedolan.github.io/jq 1.install yum install jq 在公司的centos6.3上这样安装成功了,然而自己电脑7.5安装失败,采用源码安装 git clone https://github.com/stedolan/jq.git cd jq autoreconf -i ./configure --disable-maintainer-mode make s
肯定有人和我一样,很早就听说过Linux的这个词,但是又没接触过。然后随手百度一下看着满满的命令惊呆了,不知道从哪里开始学习。这种状况一直维持到我面试的时候,我不怕跟你们说,我拿着写着“熟悉Linux的系统”的简历去面试,其实当时的我都没有了解Linux的到底是什么!我相信大家肯定都用过的Windows系统,或者也用过的mac系统,其实Linux也是和这些在Windows,Mac一样,都是系统,只是不同的形式呈现出来给用户体验。这样说大家都了解吧,就是个系统。
在使用linux的过程中,难免会误删除一些文件,可是怎样找回呢?下面介绍一下ext3文件系统的数据恢复。
Hadoop版本: cdh5.0.1(manmual安装,未安装cloudera-manager相关)
用Nginx做负载均衡的时候在配置完成后,启动Nginx的时候报: 1 nginx: [emerg] could not build the types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 32
我们在搞上层开发的时候,都是在windows下使用eclipse,那么如果是Linux应用开发,就必须要在Linux中安装eclipse,用于C/C++开发,当前是要在Linux带界面的系统中运行了,我这里就重新安装了一个带界面的CentOS6.3
Git作为一个分布式的版本控制系统,使用git的时候,一般和服务器通讯使用的是ssh协议,用ssh的主要优点是速度快(传输前数据会先压缩,比HTTP快),安全,方便读写。 客户端通过ssh访问服务器端的验证方式一般有两种,一种是用户名密码的方式,一种是使用公私钥认证的方式. 使用公私钥的方式比较方便,无需每次登录输入密码。
1,在CentOS6.3下用 /usr/sbin/pppd pty "/usr/sbin/pptp publicip --nolaunchpppd" file /etc/ppp/options.pptp user user1 password password1 再用tail -f /var/log/messages看到log如下 Oct 8 03:25:41 localhost pppd[2057]: pppd 2.4.5 started by root, uid 0 Oct 8 03:25:41 localhost pppd[2057]: Using interface ppp0 Oct 8 03:25:41 localhost pppd[2057]: Connect: ppp0 <--> /dev/pts/2 Oct 8 03:25:41 localhost pptp[2058]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated Oct 8 03:25:41 localhost pptp[2066]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request' Oct 8 03:25:41 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply Oct 8 03:25:41 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established. Oct 8 03:25:42 localhost pptp[2066]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request' Oct 8 03:25:42 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply. Oct 8 03:25:42 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 19561). Oct 8 03:25:45 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 0 Oct 8 03:25:45 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:953]: send_accm is 00000000, recv_accm is FFFFFFFF Oct 8 03:25:45 localhost pptp[2066]: anon warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported! Oct 8 03:25:45 localhost pppd[2057]: CHAP authentication succeeded Oct 8 03:25:45 localhost pppd[2057]: LCP terminated by peer (tM-+)^R^@<M-Mt^@^@^BM-f) Oct 8 03:25:45 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 0 Oct 8 03:25:45 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:953]: send_accm is FFFFFFFF, recv_accm is FFFFFFFF Oct 8 03:25:45 localhost
安装环境 操作系统:Ubuntu 14.04.1 server amd64 下载jdk wget http://download.Oracle.com/otn-pu
上篇我们讲述了如何使用VMware安装CentOS系统,接下来就看如何安装我们最为熟悉的jdk吧!安装前先看看系统上有没有安装过jdk,输入java -version,如果查询出了其他版本的jdk版本,就先删除了,笔者这里使用jdk1.6。说开始就开始,下面开始说明安装步骤吧。
2) OS 版本&架构: CentOS/7.9.2009/x86_64/ 官网下载地址
要注意 – 短横杠这个符号看看复制进去后有没有乱码,我之前就遇到这个问题,郁闷了好久才发现
[root@c1node01 ~]# service network restart
[root@localhost yum.repos.d]# yum -y install man Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package man.x86_64 0:1.6f-30.el6 will be installed --> Processing Dependency: lzma for package: man-1.6f-30.el6.x86_64 --> Running transaction check ---> Package xz-lzma-compat.x86_64 0:4.999.9-0.3.beta.20091007git.el6 will be installed --> Processing Dependency: xz = 4.999.9-0.3.beta.20091007git.el6 for package: xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64 --> Running transaction check ---> Package xz.x86_64 0:4.999.9-0.3.beta.20091007git.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================== Package Arch Version Repository Size ===================================================================================================================== Installing: man x86_64 1.6f-30.el6 base 263 k Installing for dependencies: xz x86_64 4.999.9-0.3.beta.20091007git.el6 base 137 k xz-lzma-compat x86_64 4.999.9-0.3.beta.20091007git.el6 base 16 k Transaction Summary ===================================================================================================================== Install 3 Package(s) Total download size: 415 k Installed size: 886 k Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 415 k (1/3): man-1.6f-30.el6.x86_64.rpm | 263 kB 00:20 (2/3): x
首先到官网下载jdk,http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html,我下载jdk-8u25-linux-x64.tar.gz,下载到主目录
本文直接讲解如何在Docker容器中实战部署一个Web应用程序,关于Docker相关的概念和如何安装Docker请参考相关资料完成。
NTP简介: NTP(Network Time Protocol)是用来使计算机时间同步化的一种协议,它可以使计算机对其服务器或时钟源做同步化,它可以提供高精准度的时间校正。本例讲解如何在CentOS6.3上配置NTP服务器和NTP客户端,可使多台客户机的时间与指定的NTP服务器的时间保持一致。从而保证了多台服务器的时间同步。 服务器环境 操作系统:CentOS 6.5 x86_x64 服务器ip:192.168.17.253 一、安装NTP服务器 yum install ntp 二、配置NTP
在刚刚开始学习Linux的同学,在VMware安装好Linux之后,不知道怎么去设置Ip,通过xshell去和虚拟机进行连接,下面就是我自己学习时候总结的连接方法,希望大家在连接后好好学习,我们一起进步。
CentOS6.3 x86_64 最小化安装版安装vim yum -y install vim 通过这个命令可得出安装vim所得依赖包如下 Transaction Summary ============================================================================================================================================================= Install 9 Package(s) Total download size: 18 M Installed size: 54 M Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 18 M (1/9): gpm-libs-1.20.6-12.el6.x86_64.rpm | 28 kB 00:00 (2/9): perl-5.10.1-127.el6.x86_64.rpm | 10 MB 00:41 (3/9): perl-Module-Pluggable-3.90-127.el6.x86_64.rpm | 38 kB 00:00 (4/9): perl-Pod-Escapes-1.04-127.el6.x86_64.rpm | 30 kB 00:00 (5/9): perl-Pod-Simple-3.13-127.el6.x86_64.rpm | 210 kB 00:00 (6/9): perl-libs-5.10.1-127.el6.x86_64.rpm | 576 kB 00:02 (7/9): perl-version-0.77-127.el6.x86_64.rpm | 49 kB 00:00 (8/9): vim-common-7.2.411-1.8.el6.x86_64.rpm | 6.0 MB 00:23 (9/9): vim-enhanced-7.2.411-1.8.el6.x86_64.rpm | 892 kB 00:03 ---------------------------------------------------------------------------------------------------------------------------
随着 CentOS 的快速发展,目前 CentOS 官方支持的主要版本是 6.9 和 7.4,腾讯云服务器 CentOS 对官方不再维护的版本做下线处理。将于 2018 年 4 月 20 日正式下线以下公有镜像,届时将无法使用以下公有镜像购买新的 CVM 实例和重装 CVM 实例。 【注】其他镜像、自定义镜像、服务市场镜像以及导入的镜像使用不受影响。 下线的公有镜像列表如下: CentOS 6.2 64 位 CentOS 6.3 32/64 位 CentOS 6.4 32/64 位 CentOS 6.5 3
笔者自用win10系统,就在苦恼win10好像听说过有自带的虚拟机hyper-v,我的笔记本里面怎么没有呢?
因工作关系接触到接触到安卓自动编译环境,网上的资料都推荐了jenkins,因为第一次接触安卓和jenkins,踩了不少的坑,有总结才有进步。 gitlab环境之前已经安装完成可用,具体步骤另外详解吧。
CentOS6.3 x86_64 mininstall 安装扫描之王nmap 1,安装 [root@bogon ~]# yum -y install nmap Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.163.com * updates: mirrors.163.com base | 3.7 kB 00:00 extras | 3.5 kB 00:00 extras/primary_db | 8.9 kB 00:00 updates | 3.5 kB 00:00 updates/primary_db | 3.5 MB 00:16 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package nmap.x86_64 2:5.51-2.el6 will be installed --> Processing Dependency: libpcap.so.1()(64bit) for package: 2:nmap-5.51-2.el6.x86_64 --> Running transaction check ---> Package libpcap.x86_64 14:1.0.0-6.20091201git117cb5.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================== Package Arch Version Repository Size =============================================================================================== Installing: nmap x86_64 2:5.51-2.el6 base 2.7 M Installing for dependencies: libpcap x86_64 14:1.0.0-6.20091201git117cb5.el6 base 126 k Transaction Summary =============================================================================================== Install 2 Package(s) Total download size: 2.9 M Installed size: 10 M Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 2.9 M (1/2): libpcap-1.0.0-6.20091201git117cb5.el6.x8
持续交付即Continuous Delivery,简称CD,随着DevOps的流行正越来越被传统企业所重视。持续交付讲求以短周期、小细粒度,自动化的方式频繁的交付软件,在这个过 程中要求开发、测试、用户体验等角色紧密合作,快速收集反馈,从而不断改善软件质量并减少浪费。然而,在我所接触的传统企业中,对于持续交付实践的实施都 还非常初级,坦白说,大部分还停留的手工生成发布包,手工替换文件进行部署的阶段,这样做无疑缺乏管理且容易出错。如果究其原因,我想主要是因为构建一个 可实际运行且适合企业自身环境的持续发布
当然也可以选择其他模式,不过这里,我们只讲桥接模式的,至于三种模式的区别,可以自行百度一下。
Zabbix是一个基于WEB界面提供分布式系统监视以及网络监视功能的企业级开源解决方案,如果您手里要需要管理多台服务器,使用Zabbix来监控非常合适。Zabbix由2部分构成,Zabbix server与可选组件zabbix agent。
与大家分享下RedHat Linux 5.5安装JDK+Tomcat并部署Java项目的步骤,希望对大家有用。
我们先来说下OTRS的简介:OTRS的名字是由Open-source Ticket Request System首字母缩略字而来,是一个开源的缺陷跟踪管理系统软件。OTRS将电话,邮件等各种渠道提交进来的服务请求归类为不同的队列,服务级别,服务人员通过OTRS系统来跟踪和回复客户,相对传统的处理流程来而言,OTRS提供了一个部门或团队的协调环境,以更有效率的方式处理,查询和跟踪。
CentOS6.3 x86_64 最小化安装版安装cronie yum -y install cronie 通过这个命令可得出安装cronie所得依赖包如下
CentOS(Community Enterprise Operating System)是一个基于Red Hat Linux 提供的可自由使用源代码的企业级 Linux发行版本,它是来自于Red Hat Enterprise Linux依照开放源代码规定释出的源代码所编译而成。由于出自同样的源代码,因此有些要求高度稳定性的服务器以CentOS替代商业版的Red Hat Enterprise Linux使用,相对于其他Linux发行版,其稳定性值得信赖。两者的不同,在于CentOS并不包含封闭源代码软件,详见我先前的博客 Centos和Redhat的区别和联系
心情大好,给VPS升级了一下系统,然后自己配了LNMP安装脚本,用yum源安装的话更新比较方便点哈 这个过程挺麻烦啊,所以果断要记下来,以防以后要用到 如果是其他系统的话,几个配置路径和软件源地址还有yum指令替换掉,应该就可以了
一则新闻《软件服务提供商Xamarin融资1200万美元》,更详细的内容可以看Xamarin的官方博客Xamarin raises $12M to help you make better apps faster →。这篇新闻里告诉了我们目前Mono的用户规模“使用Xamarin软件的应用开发者已经超过15万,其中付费用户约为7500名。在Xamarin的客户中,还包括一些知名的企业,如美国国家仪器(National Instruments)和数字音乐订阅服务商Rdio等”。一直关注和研究Mono项目,今天
docker是开源的应用容器引擎,基于主流的开发语言Go语言而开发,它是基于Apache2.0协议开发。docker的好处在于它可以让开发者打包他们的应用以及依赖包到一个轻量级、可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化,容器完全是使用沙箱隔离的机制,这样保障了不会对宿主机有任何的破坏。毫不夸张的说,正因为有了docker,也就形成了它很完善的生态体系,也可以让微服务架构级的产品全面落地,形成了“软件即服务”的理念,真正意义上解决了Saas化以及Paas化平台级产品的部署难的困境。程序员都是谦虚的,学习什么,都习惯了向世界问好,学习docker也是如此。在搭建docker环境的基础上,执行如下指令,就会输出“Hello from Docker!”
CentOS是Linux的发行版之一,它安全、稳定、高效,是我最喜欢的Linux发行版之一。CentOS根据Red Hat Enterprise Linux开放源代码编译而成,与RedHat Linux并没有什么本质上的差别。但Red Hat Enterprise Linux是商业软件,使用必须向RedHat公司付费,而CentOS并没有任何使用上的限制。如果你需要企业级操作系统的稳定性,又不想付费去获得服务支持,CentOS绝对会是你最好的选择。
我们可以在创建容器的时候,将宿主机的目录与容器内的目录进行映射,这样我们就可 以通过修改宿主机某个目录的文件从而去影响容器。 创建容器 添加-v参数 后边为 宿主机目录:容器目录
CentOS6.3 x86_64 mininstall 安装 apahce2.23+jdk1.7+tomecat7+mysql5.1.58
在实际的生产环境中,希望每台虚拟机对资源的消耗是可控的,避免过度的消耗资源,造成对其他虚拟机的影响。
CentOS 6已经随着2020年11月的结束进入了EOL(Reaches End of Life)。所以在2020年12月2日,CentOS官方停止了对CentOS 6的所有更新,并且下架了包括官方所有的CentOS6源,目前阿里、163、清华等CentOS6源已无法使用。
依赖库: + gmp 5.0.4 or gmp 5.0.5 + mpfr 3.1.0 + mpc 0.8.2 or mpc 0.9 + ppl 1.12 or ppl 1.12.1 + isl 0.10 + cloog 0.16.1 or cloog 0.16.2
1. 脚本下载地址:http://down.51cto.com/data/478845
在基于CentOS平台的工作过程中,难免有时需要升级或者降级内核以验证功能、调试性能或者更新整个系统。
wget https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz
在实现企业服务器虚拟化的时候,许多系统已经是NT或Windows 2000的老系统,要安装上虚拟机还得重装系统,但是已经找不到光盘或是驱动程序了,因此重装系统是无法成功的,要将旧服务器虚拟化,最好的办法就是实体机转换(P2V)。
领取专属 10元无门槛券
手把手带您无忧上云