没有什么能够阻挡,你对自由的向往。

Category Linux

在Red Hat或CentOS的单用户模式设置密码保护

原文:http://www.putorius.net/2013/07/password-protect-single-user-mode-in.html

Linux中允许无密码进入单用户模式是一个重大的安全风险,可以设置在引导进入单用户模式之前,需要root密码获得授权,这是一个好主意。[……]

Read more

php配置和mysql配置

一、php配置
1. 配置disable_function

禁用不安全的函数,其实一般web程序用不到就可以禁用了,开启反而会有隐患。

disable_functions = eval,assert,popen,passthru,escapeshellarg,escapeshellcmd,[......]

Read more

LAMP第二部分-apache的配置(二)

接上一篇文章:http://laowang.me/lamp-part-ii-apache-configuration.html

八、配置静态文件缓存

httpd.conf 中加入

    ExpiresActive on
    ExpiresByType image/gif  "a[......]

Read more

LAMP第二部分-apache的配置

一、下载discuz!(LAMP的安装的教程可参考http://laowang.me/lamp-part-built-environment.html

mkdir /data/www
cd /data/www
wget  http://download.comsenz.com/DiscuzX/[......]

Read more

Arch linux 简易安装记录

简易安装就是只安装命令行版本,不装桌面省很多麻烦,反正有钱了都要事换Macbook Pro的。

首先是按照这个教程来的,参考一下。

http://blog.lucode.net/linux/archlinux-install-tutorial.html

还有Google,Arch linu[……]

Read more

Debian 8.3 安装之后的一些设置

下了个Mini的Debian 8.3系统,精简了很多东西,连openssh-server都没有。

首先,添加源。

vi /etc/apt/sources.list

# deb cdrom:[Debian GNU/Linux 8.3.0 _Jessie_ – Official amd[……]

Read more

CentOS 6.3 Too many open files 错误的解决

最近,老有人向我反馈,shadowsocks连接不上,我ssh登陆一查日志,全是 Too many open files 报错。

我首先想到的是ulimit最大连接数,不过,我以前就已经设置成了51200啊,难道还不够用?

ulimit -a 查看一下

core file size[......]

Read more

解决Supervisor不能运行

新开了一台vps,CentOS6.5系统,用pip安装了supervisor,不能运行,看提示缺少了某个模块。

记录一下过程:

错误1:

Traceback (most recent call last):
  File "/usr/bin/supervisorctl", line[......]

Read more

LAMP第一部分-环境搭建

一、安装mysql

cd /usr/local/src/
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.40-linux-i686-icc-glibc23.tar.gz
tar zxvf /usr/local/src/m[......]

Read more

rsync同步数据

一、rsync 命令格式

Local:  rsync [OPTION...] SRC... [DEST]

       Access via remote shell:
         Pull: rsync [OPTION...] [USER@]HOST:SRC... [DEST][......]

Read more

« Older posts Newer posts »

© 2026 laowang's blog — Powered by WordPress

Theme by Anders NorenUp ↑