Warning: Undefined array key "cperpage" in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 255

Warning: Undefined variable $output in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 325

Warning: Undefined variable $fixed_tags in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 326

Warning: Undefined variable $isshowdots in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 327

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 330

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 333

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 336

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Undefined variable $more_text_link in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345
Linux – 第 8 页 – 理想社会

分类: Linux

  • vsftp的可读、可写、可删

    RHEL5 or CentOS5
    1、匿名用户可读、可写、可删、可重命名:

    (1)chmod 777 /var/ftp/pub
    (2)/etc/vsftpd/vsftpd.conf中添加:anon_other_write_enable=YES

    2、匿名用户可读、可写、不可删、不可重命名:
    方法1、chmod 1777 /var/ftp/pub
    方法2、(1)chmod 777 /var/ftp/pub
    (2)etc/vsftpd/vsftpd.conf中添加:anon_other_write_enable=NO

  • linuxas5和as4下nginx+php+myql+zend等(转)

    编译安装软件包
    源码编译安装所需包(Source)
    升级OpenSSL及OpenSSH       tar xvf openssl-0.9.8h.tar.gz
    cd openssl-0.9.8h
    ./config –prefix=/usr/local/openssl
    make
    make test
    make install
    tar zxvf openssh-5.0p1.tar.gz
    cd openssh-5.0p1
    ./configure  
    –prefix=/usr
    –with-pam
    –with-zlib
    –sysconfdir=/etc/ssh
    –with-ssl-dir=/usr/local/openssl
    –with-md5-passwords (更多…)

  • Apache配置详解

    Apache的配置

    Apache的配置由httpd.conf文件配置,因此下面的配置指令都是在httpd.conf文件中修改。

    主站点的配置(基本配置)

    (1) 基本配置:

    ServerRoot “/mnt/software/apache2” #你的apache软件安装的位置。其它指定的目录如果没有指定绝对路径,则目录是相对于该目录。

    PidFile logs/httpd.pid #第一个httpd进程(所有其他进程的父进程)的进程号文件位置。

    Listen 80 #服务器监听的端口号。

    ServerName www.clusting.com:80 #主站点名称(网站的主机名)。 (更多…)

  • Apache的prefork模式和worker模式

    模式

    这个多路处理模块(MPM)实现了一个非线程型的、预派生的web服务器,它的工作方式类似于Apache 1.3。它适合于没有线程安全库,需要避免线程兼容性问题的系统。它是要求将每个请求相互独立的情况下最好的MPM,这样若一个请求出现问题就不会影响到其他请求。

    这个MPM具有很强的自我调节能力,只需要很少的配置指令调整。最重要的是将MaxClients设置为一个足够大的数值以处理潜在的请求高峰,同时又不能太大,以致需要使用的内存超出物理内存的大小。

    模式
    此多路处理模块(MPM)使网络服务器支持混合的多线程多进程。由于使用线程来处理请求,所以可以处理海量请求,而系统资源的开销小于基于进程的MPM。但是,它也使用了多进程,每个进程又有多个线程,以获得基于进程的MPM的稳定性。

    控制这个MPM的最重要的指令是,控制每个子进程允许建立的线程数的ThreadsPerChild指令,和控制允许建立的总线程数的MaxClients指令。
    (更多…)

  • mysql alter 语句用法,添加、修改、删除字段【转】

    一,连接MySQL

    格式:mysql -h 远程主机地址 -u 用户名 -p 回车

    输入密码进入:

    mysql -u root -p 回车

    Enter password: ,输入密码就可以进入

    mysql> 进入了

    退出命令:>exit 或者ctrl+D

    二,MySQL管理与授权

    1.修改密码:

    格式:mysqladmin -u 用户名 -p 旧密码 password 新密码

    2.增加新用户:

    >grant create,select,update….(授予相关的操作权限)

    ->on 数据库.*

    -> to 用户名@登录主机 identified by ‘密码’

    操作实例:

    给root用户添加密码:

    # mysqladmin -u root password 52netseek (更多…)