10 2014 档案

摘要:cd/etc/pki/tls[root@ip-172-31-21-147 tls]# cat openssl.cnf## OpenSSL example configuration file.# This is mostly being used for generation of certific... 阅读全文
posted @ 2014-10-29 13:50 chromebook
摘要:[danny@ip-172-31-21-147 ~]$ sudo cat /usr/lib64/squid/squid_db_auth#!/usr/bin/perluse strict;use DBI;use Getopt::Long;use Pod::Usage;use Digest::MD5 q... 阅读全文
posted @ 2014-10-28 09:35 chromebook
摘要:[danny@ay-beta-hz-01 etc]$ cat syslog.conf# Log all kernel messages to the console.# Logging much else clutters up the screen.#kern.* ... 阅读全文
posted @ 2014-10-28 09:30 chromebook
摘要:[danny@ay-beta-hz-01 etc]$ cat rsyslog.conf # Use traditional timestamp format$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat# Provides kerne... 阅读全文
posted @ 2014-10-28 09:28 chromebook
摘要:[danny@ip-172-31-21-147 ~]$ sudo cat rsyslog.conf# rsyslog v5 configuration file# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html#... 阅读全文
posted @ 2014-10-28 09:27 chromebook
摘要:如果你需要在Linux中拨入虚拟网管(http://www.vpnlife.com)中,那就需要安装Linux下相应VPN的客户端,本文将介绍以pptp方式拨入虚拟网管的VPN的方法。本操作均在文本终端下完成,不涉及图形操作,本文假设你对Linux命令有一定的了解,这里不对所出现的命令进行解释。以下... 阅读全文
posted @ 2014-10-25 10:37 chromebook
摘要:# cat /etc/init.d/httpd#!/bin/bash## httpd Startup script for the Apache HTTP Server## chkconfig: - 85 15# description: The Apache HTTP Server ... 阅读全文
posted @ 2014-10-22 16:47 chromebook
摘要:#!/bin/bash##########################################Usage: upload_OSS.sh#Author: Danny#Company: BPO Solutions#Version: 1.0########... 阅读全文
posted @ 2014-10-20 09:52 chromebook
摘要:http://www.netfilter.org 阅读全文
posted @ 2014-10-18 19:26 chromebook
摘要:https://www.stunnel.org 阅读全文
posted @ 2014-10-18 17:02 chromebook
摘要:Squid代理OpenSSL 和 stunnel 关系Stunnel是通用SSL加密程序Stunnel是基于OpenSSL的http://www.squid-cache.orghttp://www.squid-cache.org/Doc/config/access_loghttp://home.ar... 阅读全文
posted @ 2014-10-15 17:33 chromebook
摘要:MySQL中information_schema是什么大家在安装或使用MYSQL时,会发现除了自己安装的数据库以外,还有一个information_schema数据库。 information_schema数据库是做什么用的呢,使用WordPress博客的朋友可能会想,是不是安装模板添加的数据库呀?... 阅读全文
posted @ 2014-10-10 12:03 chromebook
摘要:[mysqld_multi]mysqld = /usr/bin/mysqld_safemysqladmin = /usr/bin/mysqladmin[mysqld1]datadir=/mnt/mysql/3306socket=/tmp/mysql3306.sockpid-file=/mnt/mys... 阅读全文
posted @ 2014-10-09 18:09 chromebook
摘要:-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.mysqldump -uroot -pxxxxx --all-databases > all.sqlmysql用mys... 阅读全文
posted @ 2014-10-09 11:05 chromebook
摘要:LAMP默认安装路径Apache:如果采用RPM包安装,安装路径应在 /etc/httpd目录下apache配置文件:/etc/httpd/conf/httpd.confApache模块路径:/usr/sbin/apachectlweb目录:/var/www/html如果采用源代码安装,一般默认安装... 阅读全文
posted @ 2014-10-07 11:23 chromebook
摘要:php-config 是一个简单的命令行脚本用于获取所安装的 PHP 配置的信息。在编译扩展时,如果安装有多个 PHP 版本,可以在配置时用 --with-php-config 选项来指定使用哪一个版本编译,该选项指定了相对应的 php-config 脚本的路径。php-config 脚本在命令行所... 阅读全文
posted @ 2014-10-07 11:06 chromebook
摘要:My First HeadingMy first paragraph.例子解释 与 之间的文本描述网页 与 之间的文本是可见的页面内容 与 之间的文本被显示为标题 与 之间的文本被显示为段落 阅读全文
posted @ 2014-10-06 22:38 chromebook
摘要:PHP 测试 Hello World'; ?> 阅读全文
posted @ 2014-10-06 22:35 chromebook
摘要:源码安装index.html的目录[root@localhost htdocs]# vim /usr/local/apache2/htdocs/index.html It works!在线安装index.html的目录,默认情况下将要发布的网页文件应该置于/var/www目录下[root@local... 阅读全文
posted @ 2014-10-06 22:23 chromebook
摘要:/etc/local下面的文件[root@localhost local]# lsbin etc games include lib lib64 libexec sbin share src[root@localhost local]# ls -ltotal 40drwxr-xr-x. 2 roo... 阅读全文
posted @ 2014-10-06 20:23 chromebook
摘要:[root@localhost httpd]# cat -n /etc/httpd/conf/httpd.conf //httpd.conf配置文件初始值 1 # 2 # This is the main Apache server configuration file. It... 阅读全文
posted @ 2014-10-06 17:42 chromebook
摘要:[root@localhost ~]# vim /usr/local/php/etc/php.ini 1 [PHP] 2 3 ;;;;;;;;;;;;;;;;;;; 4 ; About php.ini ; 5 ;;;;;;;;;;;;;;;;;;;... 阅读全文
posted @ 2014-10-06 15:33 chromebook
摘要:[root@localhost ~]# service mysqld startStarting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).1... 阅读全文
posted @ 2014-10-06 09:44 chromebook
摘要:[root@localhost ~]# vim -n /usr/local/apache2/conf/httpd.conf 1 # 2 # This is the main Apache HTTP server configuration file. It contains ... 阅读全文
posted @ 2014-10-05 23:07 chromebook
摘要:/etc/init.d 是一般开机的启动服务存放在这个目录下/etc/rc.d启动的配置文件和脚本/etc/init.d & /etc/rc.d/init.d是同一个目录,内容相同实现机制,其实/etc/init.d是一个符号链接文件,链接指向/etc/rc.d/init.d你运行以下命令可以看出来... 阅读全文
posted @ 2014-10-05 15:45 chromebook
摘要:[root@localhost ~]# vim /etc/my.cnf[mysqld]datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sockuser=mysql# Disabling symbolic-links is recommended t... 阅读全文
posted @ 2014-10-05 15:00 chromebook
摘要:Book励学篇赵恒(宋真宗)富家不用买良田, 书中自有千钟粟。 安居不用架高楼, 书中自有黄金屋。 娶妻莫恨无良媒, 书中自有颜如玉。 出门莫恨无人随, 书中车马多如簇。 男儿欲遂平生志, 六经勤向窗前读。我推荐的书:图灵中文社区http://www.ituring.com.cnhttps://ww... 阅读全文
posted @ 2014-10-05 10:28 chromebook
摘要:[root@localhost ~]# vi /etc/squid/squid.conf## Recommended minimum configuration:#acl manager proto cache_objectacl localhost src 127.0.0.1/32 ::1acl ... 阅读全文
posted @ 2014-10-05 09:15 chromebook
摘要:# Firewall configuration written by system-config-firewall# Manual customization of this file is not recommended.*filter:INPUT ACCEPT [0:0]:FORWARD AC... 阅读全文
posted @ 2014-10-05 09:07 chromebook
摘要:报错:danny is not in the sudoers file. This incident will be reported.解决方法如下: 1.进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。2.添加sudo文件的写权限,命令是:ch... 阅读全文
posted @ 2014-10-05 08:55 chromebook
摘要:vi /data/mysql/my.cnfvi /etc/my.cnf1、basedir参数原文说明为:Path to installation directory. All paths are usually resolved relative to this.解释:该参数指定了安装 MySQL ... 阅读全文
posted @ 2014-10-03 16:58 chromebook
摘要:Bash安全漏洞故障处理方法一:漏洞描述该漏洞源于你调用的bash shell之前创建的特殊的环境变量,这些变量可以包含代码,同时会被bash执行。二:已确认被成功利用的软件及系统所有安装gunbash版本小于或者等于4.3的linux操作系统。三:漏洞检测方法[root@localhost ~]#... 阅读全文
posted @ 2014-10-03 10:31 chromebook