Linux
文章平均质量分 59
Kallen
这个作者很懒,什么都没留下…
展开
-
Grub Customize Setting
Defination:GRUB 2 is the default boot loader and manager for Ubuntu since version 9.10 (Karmic Koala). As the computer starts, GRUB 2 either presents a menu and awaits user input or automatically tr原创 2013-09-20 21:42:13 · 1821 阅读 · 1 评论 -
Git常用命令
1.比较提交 - Git Diff$ git diff master..test$ git diff master...test2.克隆项目 - Git Clone$ git clone http://git.shiyanlou.com/shiyanlou/gitproject$ git clone /home/shiyanlou/gitproject myrepo3.提交修改 - Git Ad原创 2015-12-16 10:24:20 · 1070 阅读 · 0 评论 -
KickStart工作流程
1.DHCP[root@kallen ~]# cat /etc/dhcp/dhcpd.conf ddns-update-style interim;ignore client-updates;subnet 172.16.1.0 netmask 255.255.255.0{ option routers 172.16.1.1; option subnet-mask 255.255原创 2015-11-23 10:01:30 · 1588 阅读 · 0 评论 -
Shell Step by Step (1) —— Introduction
1. 查看当前用户(用户数)root@kallen:~# who [ | wc -l]root@kallen:~# who kallen tty4 2015-01-16 10:46 kallen tty5 2015-01-16 10:47 kallen tty2 2015-01-16 10:42 kallen tty3 2015-01-16 10:42原创 2015-01-27 17:24:16 · 1172 阅读 · 0 评论 -
在RHEL6中配置YUM源
1 创建rhel-debuginfo.repo,如果有则先备份再删除 cd /etc/yum.repos.d rm rhel-debuginfo.repo vi rhel-debuginfo.repo 插入以下内容: [Server] name=Red Hat Enterprise Linux Server baseurl=file:///home/redhat-iso #本地i原创 2015-10-19 17:26:22 · 6326 阅读 · 1 评论 -
LNMP环境搭建——Nginx篇
1.Nginx配置文件测试root@kallen:/usr/local/nginx/sbin# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful2.Nginx启动原创 2015-09-14 20:09:59 · 18615 阅读 · 23 评论 -
MySQL双主热备问题处理
1. Slave_IO_Running: Nomysql> show slave status\G*************************** 1. row *************************** Slave_IO_State: Master_Host: 192.16.10.21原创 2015-09-14 20:09:23 · 4440 阅读 · 0 评论 -
Fix Elementary Boot Screen (plymouth) After Installing Nvidia Drivers
Q:I just installed propietary nvidia drivers, after that the glowing “e” plymouth theme was gone, only text and some ugly graphics appears. The version of nvidia drivers is 304. I try reinstalling the plymouth theme but it don’t work.原创 2013-09-20 09:06:47 · 3083 阅读 · 0 评论 -
Rsync同步错误处理
1.用户密码错误@ERROR: auth failed on module testrsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]检查服务器A存储密码文件和服务器B密码文件。 服务器A密码文件: /etc/rsyncd/rsyncd.secrets 格式为原创 2015-08-22 19:54:49 · 7200 阅读 · 0 评论 -
Shell Step by Step (3) —— Stdin & if
4.输入输出#! /bin/bash# Read users input and then get his nameread -p "Please input your first name: " firstNameread -p "Please input your last name: " lastNameecho -e "Your full name is: $firstName原创 2015-07-21 09:11:09 · 2502 阅读 · 0 评论 -
Shell Step by Step (2) —— Variable
3.变量声明readonly 只读export 修改或打印环境变量export -p 显示当前环境【注】强烈注意,在赋值的前后一定不要有空格.# echo 控制字符颜色root@kallen:/home/kallen/TEST/Shell# echo -e '\e[1;31mHello,World\e[0m' Hello,World背景色: 0原创 2015-01-28 17:27:01 · 1083 阅读 · 0 评论 -
Shell Step by Step (4) —— Cron & Echo
6.脚本定时任务# Example of job definition:# .------------------------- minute (0 - 59)# | .--------------------- hour (0 - 23)# | | .----------------- day of month (1 - 31)# | | | .-原创 2015-08-25 09:01:13 · 2783 阅读 · 0 评论 -
LVS集群十种调度算法及负载均衡理论
一、LVS概念LVS(Linux Virtual Server):Linux 虚拟服务器;LVS是个负载均衡设备,它不提供任何服务,用户请求到这里的时候,它是将客户需求转发至后端真正提供服务的服务,所以说后端的服务称作real server;LVS分为两段,前一段称为ipvsadm(管理集群服务的命令行工具),后面一段叫做ipvs(内核模块);【提示】LVS和iptables不能同时使用;转载 2015-06-25 22:48:14 · 1296 阅读 · 0 评论 -
Ubuntu下安装和配置Apache2
在Ubuntu中安装apache 安装指令:sudo apt-get install apache2 安装结束后: 产生的启动和停止文件是:/etc/init.d/apache2 启动:sudo apache2ctl -k start 停止:sudo apache2ctl -k stop 重新启动:sudo apache2ctl -k restart 配置转载 2014-10-16 11:39:55 · 1208 阅读 · 0 评论 -
Install Burg Bootloader
> sudo add-apt-repository ppa:bean123ch/burg> sudo apt-get update> sudo apt-get install burg-themes> sudo burg-install "(hd0)"> sudo update-burg> sudo cp -r fortune /boot/burg/themes原创 2014-10-15 16:09:43 · 1022 阅读 · 0 评论 -
Change Sudoers Mod 777 To 0440
Method 1:> grub --> recovery mode --> e> ro single rw single init=/bin/bash> ctrl + x> chmod 0440 /etc/sudoersMethod 2:> pkexec chmod 0440 /etc/sudoers原创 2014-10-15 11:13:05 · 1452 阅读 · 0 评论 -
XShell自定义配色方案
kallen-comfort_color.xcs[kallen-comfort_color]text=ffffffcyan(bold)=00fffftext(bold)=ffffffmagenta=ff0080green=00f200green(bold)=0bff0bbackground=002b35cyan=00ffffred(bold)=ff0000yellow=ffff0原创 2015-12-16 15:56:25 · 1129 阅读 · 0 评论