Linux
linglong0820
这个作者很懒,什么都没留下…
展开
-
ubunut 网卡做bond后的桥接
root@ubuntu:~# cat /etc/network/interfaces # This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).# The loopback netwo原创 2015-06-23 10:52:50 · 1042 阅读 · 0 评论 -
yum.Errors.MiscError: xz compression not available
报错cobbler同步centos7 的epel源报错yum.Errors.MiscError: xz compression not available原因缺少一个包 pyliblzma解决办法yum -y install pyliblzma原创 2015-10-08 18:31:01 · 1168 阅读 · 0 评论 -
U盘安装 ESXI 5.5
使用UltraISO制作安装盘这种方式可以安装window系统和一般的linux系统制作ESXI启动时不能用UltraISO制作自动盘使用UltraISO安装ESXI时,会一直卡在:Lonading /lsi_mr3.v00原因: ESXi在采用U盘安装的时候,不能采用HD USB模式 需要改用EFI模式的U盘启动安装Rufus 制作U盘启动盘原创 2015-09-19 10:16:38 · 5900 阅读 · 0 评论 -
linux系统挂载ntfs磁盘
安装epel源yum -y install epel-release安装 ntfs-3gyum -y install ntfs-3g查看自己的ntfs设备挂载mount -t ntfs /dev/sdb1 /media/原创 2015-09-19 10:35:32 · 466 阅读 · 0 评论 -
镜像源整理 (可通过cobbler同步)
Centos的镜像源centos使用可以使用国内的源,比较方便(自己使用163)163源使用说明163镜像站centos7.1-1503镜像(可通过cobbler同步) 简称 镜像地址 Base http://mirrors.163.com/centos/7.1.1503/os/x86_64/ update http://mirrors.163.com/centos/7.1.1原创 2015-10-09 10:21:12 · 1126 阅读 · 0 评论 -
linux主机打通ssh通道
测试主机192.168.100.101 node1192.168.100.102 node2192.168.100.103 node3目标使列表中主机ssh互通,不用输入密码即可登录1、安装软件包yum -y install openssh-clients2、node1 生成秘钥 ssh-keygen 3、node1将公钥复制到另外两台主机ssh-copy-id localhostss原创 2016-01-13 14:50:58 · 2895 阅读 · 0 评论 -
centos7下gitlab的搭建、备份与还原
1、gitlab的搭建安装基础包yum install curl policycoreutils openssh-server openssh-clients启动sshd systemctl enable sshd systemctl start sshd安装postfixyum install postfixsystemctl enable postfixsystemctl st原创 2016-03-17 21:42:46 · 4313 阅读 · 0 评论 -
python函数
本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl + Q插入链接 Ctrl +转载 2015-06-22 19:13:43 · 1044 阅读 · 0 评论 -
Centos7 使用总结
1、防火墙 centos7 默认用firewall,改为iptables的方法systemctl stop firewalld.servicesystemctl disable firewalld.serviceyum -y install iptables-services原创 2015-09-25 16:29:30 · 874 阅读 · 0 评论 -
Centos7 安装ELK
1、概述ELK 简介 ELK 是Elasticsearch+Logstash+Kibana的简称:Elasticsearch是一个基于Lucene的搜索服务器。它提供了一个分布式多用户能力的全文搜索引擎,基于java开发 Logstash是一个接收,处理,转发日志的工具。 Kibana是一个基于浏览器页面的Elasticsearch前端展示工具。Kibana全部使用HTML语言和Javasc原创 2015-09-05 17:46:45 · 3336 阅读 · 0 评论 -
centos7 和centos6 服务操作命令对比
以httpd为例子: 指令名称 centos 6 centos 7 启动服务 service httpd start systemctl start httpd.service 关闭服务 service httpd start systemctl stop httpd.service 重启服务 service httpd restart systemct原创 2015-09-03 15:53:41 · 5560 阅读 · 0 评论 -
Centos 网卡做bond
[root@localhost network-scripts]# cat ifcfg-eth0DEVICE=eth0HWADDR=B8:AC:6F:12:66:3CTYPE=EthernetUUID=16036f05-47b0-46e7-9fc3-b7cafe2d7a14ONBOOT=yesNM_CONTROLLED=noMASTER="bond0"SLAVE="yes"[root原创 2015-06-23 10:51:49 · 793 阅读 · 0 评论 -
将linux程序或者脚本的后台运行
命令: nohub 脚本 & # nohup make iso & 提示 nohup: ignoring input and appending output to ‘nohup.out’想要监控输出:# tail -f nohup.out原创 2015-08-13 13:01:57 · 478 阅读 · 0 评论 -
mysql忘记密码
# /etc/init.d/mysql stop# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &# mysql -u root mysqlmysql> update user set password=password(newpassword) where user=root;mysql> flush pri原创 2015-08-13 15:46:30 · 462 阅读 · 0 评论 -
linux设置dhcp中继代理
操作系统版本cat /etc/issueCentOS release 6.6 (Final)Kernel \r on an \m开启路由转发功能echo "1" > /proc/sys/net/ipv4/ip_forwardvi /etc/sysctl.conf net.ipv4.ip_forward = 1 sysctl -p安装dhcp yum install dhcp修改配置文原创 2015-08-16 23:51:56 · 2537 阅读 · 0 评论 -
git的使用
git全局设置# git config --global user.name# git config --global user.email test@email.com 创建新仓库 # mkdir new # git init # git remote add origin https://github.com/linglong0820/test.git克隆仓库 # git原创 2015-08-12 14:19:30 · 428 阅读 · 0 评论 -
git创建新的分支
配置全局git# git config --global user.name test# git config --global user.email test@email.com 克隆仓库# git clone https://github.com/linglong0820/kilo创建新的分支# git checkout -b branch-name # git checkout原创 2015-08-12 16:11:30 · 485 阅读 · 0 评论 -
linux添加静态路由
添加路由route add -net 192.168.10.0/24 gw 192.168.10.254route add -host 192.168.1.1 dev eth0删除路由route del -net 192.168.0.0/24 gw 192.168.0.1add 增加路由 del 删除路由 -net 设置到某个网段的路由 -host 设置到某台主机的路由 gw 出口网关 I原创 2015-08-17 00:17:59 · 541 阅读 · 0 评论 -
制作本地yum源
为何要建立本地yum源当我们需要安装大量的软件包,网速又很慢的时候 当我们对安装的软件包版本要求苛刻,官网又随时会更新的时候 当我们去给客户实施,客户又没有网络的情况下我们就需要提前把自己需要的rpm包下载下来,制作成本地yum源,固定安装版本,达到快速安装的效果yum理论知识YUM是Yellow dog Updater Modified的简称 yum是软件的仓库,它可以是http或ftp站点原创 2015-09-01 10:20:00 · 934 阅读 · 0 评论 -
安装KVM虚拟机
1、最小化安装系统操作系统版本:# cat /etc/issueCentOS release 6.6 (Final)查看宿主机的cpu是否支持KVM # grep -E -o '(vmx|svm)' --color=auto /proc/cpuinfovmx表示CPU支持Intel VT 技术,svm代表CPU支持AMD-v技术原创 2015-07-01 11:51:53 · 913 阅读 · 0 评论 -
Centos7 firewall常用命令总结
firewall安装安装并设置开机启动yum install firewalld firewall-configsystemctl start firewalld.servicesystemctl enable firewalld.servicesystemctl status firewalldfirewall-cmd命令防火墙状态firewall-cmd --state重新加载规原创 2015-09-07 22:30:39 · 1527 阅读 · 0 评论 -
linux查看cpu信息
物理cpu:物理服务器插槽中cpu的个数cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -lcpu 核数:单个CPU上面能处理数据的芯片组的数量cat /proc/cpuinfo| grep "cpu cores"| uniq逻辑cpu:cat /proc/cpuinfo| grep "processor"| wc -l物理cpu、cpu核数、原创 2015-09-01 15:56:17 · 665 阅读 · 0 评论