Beforeweleavethetopicofsystem-loggerconfigurationanduse,weshouldcoveratoolthatcanbeusedtotestyournewconfigurations,regardlessofwhetheryouusesyslogorSyslog-ng:logger.loggerisacommand-lineapplicationtha
echo"local2.debug/var/log/sudo.log">>/etc/rsyslog.confecho"Defaultslogfile=/var/log/sudo.log">>/etc/sudoerssystemctlrestartrsyslog
Thisisveryeasytask,youneedyum-utilspackage.CheckInstalledKernelsrpm-qkernelkernel-2.6.32-279.el6.x86_64kernel-2.6.32-279.2.1.el6.x86_64kernel-2.6.32-279.5.2.el6.x86_64kernel-2.6.32-279.9.1.el6.x86_64D
history记录中添加时间,用户地址等信息vi /etc/profileexport HISTTIMEFORMAT=" %F %T `who -u am i 2> /dev/null | awk '{print $NF}' | sed -e 's/[()]//g'` `whoami` "history记录添加到 syslog日志方法一:推荐vi /etc/profilefunction l
1. First, add a new chain with a reasonable name:iptables -N LOGGING2. Next, insert a rule at the appropriate point (hence me using --line-numbers above). You could replace the existing REJECT at line
yum -y install perl-core perl-DBD-Pg net-snmp-perl net-snmp-devel make automake gccuseradd netdiscoyum -y install postgresql-serverservice postgresql initdb; service postgresql start; chkconfig
yum -y install dnsmasqgroupadd -r dnsmasquseradd -r -g dnsmasq dnsmasqvi /etc/dnsmasq.conflisten-address=127.0.0.1,192.168.2.5port=53bind-interfacesuser=dnsmasqgroup=dnsmasqpid-file=/var/run/dnsmasq.p
YUM代理设置 编辑/etc/yum.conf,在最后加入# Proxyproxy=http://username:password@proxy_ip:port/ 也可以使用proxy_username和proxy_password来配置代理的用户名和密码 这样的配置完成后,所有的用户在使用yum时,都会使用代理,可以说是全局代理。 Wget的代
Installing JDK8rpm -ivh jdk-8u40-linux-x64.rpmecho 'export JAVA_HOME=/usr/java/default' >> /etc/profile.d/java.shecho 'export PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile.d/java.shsource /et
1. Install nginx from Ngnix web with stable versionvi /etc/yum.repos.d/nginx.repo[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/6/x86_64/gpgcheck=0enabled=1yum -y install nginxvi /etc/
nfs客户端1. vi /etc/fstab 加入一下选项_netdev10.10.10.1:/vol1/fs1 /data nfs defaults,_netdev 0 02. service netfs start; chkconfig netfs onthat's it.Now your mount boot process should look something
一、 普通模式, no sslsetup private docker registry (参考 https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-docker-registry-on-ubuntu-14-04 and http://www.dropbit.ch/private-docker
1. Install DockerInstall latest Docker on Ubuntu 14.04:apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9sh -c "echo deb https://get.docker.com/
for example:wget -r -l 1 -nd -A "*.rpm" http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5.3.0/RPMS/noarch
useradd username; passwd usernamevi /etc/ssh/sshd_config# Authentication:#LoginGraceTime 2m#PermitRootLogin no#StrictModes yes#MaxAuthTries 6#MaxSessions 10AllowUsers root@x.x.x.xAllowUsers username@*
yum -y install expectlogin as normal user:vi su.exp#!/usr/bin/expectset timeout 30spawn su -expect "Password:"send "root-pass\r"interactchmod +x su.exp./su.exp
yum -y install rrdtool rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI perl-DBI perl-XML-Simple perl-Config-General perl-HTTP-Server-Simple perl-IO-Socket-SSLrpm -ivh monitorix-3.
Zentyal Server:1. install below modules:DNS ServiceFile Sharing and Domain ServicesFirewallNetwork ConfigurationUsers and Computers2. add a user with Administrator Privileges in "Domain Admins" groupC
CentOS kerberos client:1. vi /etc/resolv.conf search yourdomain.comnameserver x.x.x.x2. yum -y install krb5-workstation krb5-libsvi /etc/krb5.confchange to yourdomain and KDC serverkinit usernameklist
yum -y install wget glibc.i686 mysql-serverrpm -ivh jdk-7u67-linux-x64.rpmrpm -ivh openfire-3.9.3-1.i386.rpm vi /etc/sysconfig/openfire JAVA_HOME=/usr/java/defaultservice openfire startservice my
yum -y install mysql-server php php-mysql php-pdo php-gd php-mbstring php-dom php-xml httpdvi /etc/php.inimbstring.func_overload = 0extension=mysqli.soextension=pdo.soextension=pdo_mysql.soservice mys
vi /etc/sysconfig/iptables-A INPUT -s x.x.x.x -p tcp --dport 8080 -m mac --mac-source 11:22:33:44:55:66 -j ACCEPT
vi /etc/resolv.confsearch your-internal-domain-namenameserver your-internal-domain-server-ip
相关的几个配置参数如下:readonly 是否只读writable 是否可写read list 只读用户的列表write list 可写用户的列表优先级:write list优先级别最高,所列的用户肯定有写的权限read list其次,其中的用户具有只读的权限,例外:如果某个用户同时在write list和read list中,则该用户具有可写的权限writable和readonly权限等同,谁放
rpm -e --nodeps mysql-libsyum -y install libaio perlrpm -ivh MySQL-shared-compat-5.6.20-1.el6.x86_64.rpm rpm -ivh MySQL-shared-5.6.20-1.el6.x86_64.rpm rpm -ivh MySQL-server-5.6.20-1.el6.x86_64.rpm rpm
监控测试优化
vi /etc/profile.d/colorls.shalias ll='ls -l --color=never' 2>/dev/null
yum -y install httpd mod_ssl mod_perl mod_auth_mysql mysql-server php php-mysql php-gd php-bcmath php-dba php-mbstring php-devel php-cli php-pdo php-mcrypt php-xml php-pecl-apc vi /etc/php.inida
MySQL 主从:On Master server: 192.168.20.141. disable selinux and iptablesservice iptables stopchkconfig iptables off; chkconfig ip6tables offsetenforce 0vi /etc/selinux/configSELINUX=disabled2. yum -y i
You should have odd number of real nodes.node #1hostname: percona1IP: 192.168.70.71node #2hostname: percona2IP: 192.168.70.72node #3hostname: percona3IP: 192.168.70.731. disable selinux and iptablesse
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号