systemd详解
一:描述CentOS 7 使用systemd替换了SysV。Systemd目的是要取代Unix时代以来一直在使用的init系统,兼容SysV和LSB的启动脚本,而且够在进程启动过程中更有效地引导加载服务。 systemd的特性有: 1.支持并行化任务 2.同时采用socket式与D-Bus总线式激活服务。 按需启动守护进程(daemon);3.利用 Li...
Linux Http代理服务器 Tinyproxy
一:背景操作系统: Centos 6.5Tinyproxy: 1.8.3-1.el6
Linux CentOS 文件共享NFS的安装配置
一:NFS的安装centos 5 :yum install nfs-utils portmapcentos 6 :yum install nfs-utils rpcbind二:NFS服务端配置1.创建共享目录/mnt/html2.开发权限chmod -R 777 /mnt/html3.配置文件vi /etc/exports添加 /mnt/html clientHostIp(rw)a. 输出目录:输出目录是指NFS系统中需要共享给客...
Linux CentOS SSH端口限制及变更
一:IP访问限制设置vi /etc/hosts.denyvi /etc/hosts.allow二:变更ssh访问端口1.Vi /etc/ssh/ssh_configservice sshd restart /usr/sbin/sshd -p 95272.生产机器禁止root远程SSH登录PermitRootLogin noPort 9527service sshd restart/etc/init.d/sshd restart3.增加新的用户执行ssh访问操作...
Redhat linux 6.5 yum安装
<span style="font-size:16px;"><strong>一:删除已有的yum </strong></span><br /><span style="font-size:16px;"></span><br /><span style="font-size:16px;"></span><span style="font-size:16px;">rpm -qa|grep yum</span><br /><span style="font-size:16px;">rpm -qa|grep yum|xargs rpm -e --nodeps</span...
ubuntu 中文显示乱码问题
添加中文字符编码:$sudo vim /var/lib/locales/supported.d/local#添加下面的中文字符集zh_CN.GBK GBKzh_CN.GB2312 GB2312zh_CN.GB18030 GB18030使其生效:$sudo dpkg-reconfigure localesvim:打开vim的配置文件,位置在/etc/vim/vimrc在其中加入set fileencodings=utf...
Linux 错误:fatal error: uuid/uuid.h: No such file or directory
重新configure 后,出现别的错误:fatal error: uuid/uuid.h: No such file or directory这是因为没有uuid库和头文件,需要安装e2fsprogs,试过yum命令安装,问题没解决,需要从源码编译wget http://downloads.sourceforge.net/e2fsprogs/e2fsprogs-1.41.14.tar.gztar xvzf e2fsprogs-1.41.14.tar.gz进入e...
RHEL yum安装
1.卸载rhel的默认安装的yum包查看yum包:# rpm -qa|grep yum卸载yum包。卸载要使用nodeps参数,否则由于依赖关系是无法卸载成功的:# rpm -qa|grep yum|xargs rpm -e --nodeps2.下载新的yum包并安装(请注意下载对应系统及位数的安装包)1 # wget http://tel.mirrors.163.com/centos/5/os/x86_...
linux 添加定时任务 tomcat cataln.out 切分
一:脚本文件#!/bin/shcp -rf /usr/local/apache-tomcat-7.0.11/logs/catalina.out /usr/local/apache-tomcat-7.0.11/logs/catalina.out.$(date -d "yesterday" +"%Y%m%d").logecho > /usr/local/apache-tomcat-7.0.11/logs/catalina.out二:添加定时任务crontab -u root -e01 00 * * * /bin/sh /...
Linux--SSH 查看应用日志中文乱码解决办法
一 : vi /etc/sysconfig/i18n 添加LANG="zh_CN.GB18030"LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"SYSFONT="lat0-sun16"二:重启应用...