
Linux
奕起学习
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Linux——Ubuntu14.04下安装JDK、Tomcat和MySQL
Ubuntu下安装JDK:http://www.linuxidc.com/Linux/2015-01/112030.htm Ubuntu下安装Tomcat(需要先把Tomcat包的权限设置为可读可写): http://jingyan.baidu.com/article/e4d08ffdabb0710fd2f60de9.html Ubuntu下安装MySQL: http://blog.csdn.n原创 2017-08-27 13:13:25 · 297 阅读 · 0 评论 -
Linux——shell学习笔记
Linux下Shell中的变量以及作用原创 2017-08-27 22:41:49 · 235 阅读 · 0 评论 -
Linux——Shell学习笔记2
1、for循环 2、while循环 3、case语句 4、read命令 5、启动脚本调试 6、sed使用原创 2017-08-28 13:47:27 · 309 阅读 · 0 评论 -
Iptables教程
1.iptables防火墙简介 Iptables也叫netfilter是Linux下自带的一款免费且优秀的基于包过滤的防火墙工具,它的功能十分强大,使用非常灵活,可以对流入、流出、流经服务器的数据包进行精细的控制。iptables是Linux2.4及2.6内核中集成的模块。 2.Iptables服务相关命令 1.查看iptables状态 service iptables status 2.开转载 2017-08-28 13:58:53 · 224 阅读 · 0 评论 -
Linux软件自动化部署脚本
首先是免密登录:#!/bin/bashSERVERS="node-3.itcast.cn node-4.itcast.cn" PASSWORD=123456 BASE_SERVER=172.16.203.100auto_ssh_copy_id() { expect -c "set timeout -1; spawn ssh-copy-id $1; expect原创 2017-08-28 22:48:23 · 720 阅读 · 0 评论 -
Linux学习笔记
Linux是一个长时间运行比较稳定的操作系统,所有我们一般会拿它作为服务器(web,db,app等)。 Linux本身具有C的编译环境、我们的一些软件是没有软件包(redis、nginx等)的,需要在Linux的C编译环境编译得到软件包. linux下面的一些常用命令: 常用: Pwd 获取当前路径 Cd 跳转到目录 Su -u 切换到管理员 Ls ls 列举目录 文件操作命令:原创 2017-12-23 14:33:58 · 315 阅读 · 0 评论 -
python通过配置文件构造日志
python通过配置文件进行日志构造 logtest.py: # !/usr/bin/env python # -*- coding:utf-8 -*- import ConfigParser import time import random #随机构造num条日志 def getLogRandom(type,num,typeLog): if(type == 1): ...原创 2018-03-15 09:41:32 · 632 阅读 · 2 评论 -
python通过配置文件生成日志
logtemplate.py: #coding:utf-8 import ConfigParser from string import Template import time import math import Queue from getIP import * def getLogByConf(num): cf = ConfigParser.ConfigParser() ...原创 2018-03-15 20:38:35 · 869 阅读 · 0 评论