alamise

Website URL:

Qnap 设置 APM 254

  • June 3, 2012
  • Published in Qnap

 fdisk -l

 

- Go to the 'Application servers' area in the admin control panel... then to the 'QPKG' area. From here I installed and activated 'Optaware.' This will install the ipkg system for Linux. -打开 网页服务器 -打开 连接 http://192.168.1.xx:80/Optware/ -搜索 hdparm 点击 install -SSH 服务打开 登陆 ssh 运行 hdparm- hdparm -B 254 /dev/sda 返回的结果 [~] # hdparm -B 254 /dev/sda /dev/sda: setting Advanced Power Management level to 0xFE (254) HDIO_DRIVE_CMD failed: Invalid argument

 

 等待完全启动 再运行

 

hdparm-hdparm -B 254 /dev/sda

hdparm-hdparm -B 254 /dev/sdb


- Go to the 'Application servers' area in the admin control panel... then to the 'QPKG' area. From here I installed and activated 'Optaware.' This will install the ipkg system for Linux.

- Now log out of any telnet/SSH connection and re login with admin / root authority and type ... ipkg install hdparm

- You should now see the latest verison being dowbloaded and installed

- You will now essentially have two hdparm apps installed so the original hdparm commands wont work... instead you'll probably need to use hdparm-hdparm to start your string. E.G. 'hdparm-hdparm -B 254 /dev/sda'

    centos 5.8 安装 php 5.2 mysql 5.1

    方法3  IUS

    http://iuscommunity.org/Docs/ClientUsageGuide

    http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/
    http://wiki.iuscommunity.org/Repos

    打开
    http://dl.iuscommunity.org/pub/ius/stable/
    查找

    文件 /Redhat/5/x86_64/
    查找最新
    epel-release-5-xxx.noarch.rpm
    ius-release-xxxxxxx.ius.el5.noarch.rpm

    安装
    wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-xxxxx.ius.el5.noarch.rpm

    wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-xxxxxx.ius.el5.noarch.rpm

    rpm -Uvh ius-release*.rpm epel-release*.rpm


    列表可以安装的包
    yum list | grep -w \.ius\.


    安装 replace 插件
    $ sudo yum install yum-plugin-replace

    查看 php
    [root@linuxbox ~]# rpm -qa | grep php


    替换新版 php

    yum replace php --replace-with php52

    安装几个插件
    yum install -y php52-xml php52-dom php52-mcrypt php52-gd php52-mbstring php52-mhash

    替换后查看
    [root@linuxbox ~]# php -v

    重启 apache
    [root@el5-i386 ~]# httpd -t
    Syntax OK

    [root@el5-i386 ~]# /etc/init.d/httpd restart
    Stopping httpd: [ OK ]
    Starting httpd: [ OK ]

    替换 mysql
    yum replace mysql --replace-with mysql51

     

     

    命令列表如下

     

    wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-5-4.noarch.rpm
    wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
    rpm -Uvh ius-release*.rpm epel-release*.rpm
    yum install yum-plugin-replace
    yum replace php --replace-with php52
    yum install -y php52-xml php52-dom php52-mcrypt php52-gd php52-mbstring php52-mhash
    yum remove mysql.i386
    yum replace mysql --replace-with mysql51
    /etc/init.d/httpd restart
    httpd -v
    php -v
    mysql -v

    mysql 升级了 需要修复权限 否则 virtualmin 会出错

    mysql_fix_privilege_tables --user=root --password= --verbose

     

    1and1 需要修复 quotas

    repquota -uga

    关闭 quotas

    System Settings
     

    Virtualmin Configuration

     

    Set quotas for domain and mail users?   

     

     


    如果需要重设mysql root 密码
    方法如下
    service mysqld stop
    建立文件
    /home/mysql-init
    内容如下
    UPDATE mysql.user SET Password=PASSWORD('') WHERE User='root';
    FLUSH PRIVILEGES;
    运行
    mysqld_safe --init-file=/home/mysql-init &
    运行结果 密码为空

    如需改变密码 方法如下
    mysql -u root -pxxxx
    SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyPW');
    exit

     

    还需要设置开机启动 mysql

    chkconfig mysqld on

    #vi /etc/rc.d/rc.local

    #/etc/rc.d/init.d/mysqld start

     

     

    2. php.ini  修改 /etc/php.ini

     

    upload_max_filesize = 100M

     

    post_max_size = 10M

     

    max_execution_time = 60 ; Maximum execution time of each script, in seconds
    max_input_time = -1 ; Maximum amount of time each script may spend parsing request data
    memory_limit = 256M ; Maximum amount of memory a script may consume (16MB)

     

    --------------------------------------------------------------------------------------------------------------------------------------------

    方法1

    www.CTOHome.com/linux-vps-pack/php5.2.sh

     

     

    yum 设置 源 关闭

    xxxx.repo 设置 enabled=0

     

    然后使用 yum --enablerepo=xxxx install 来安装

    #!/bin/bash
    rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy
    wget -P /etc/yum.repos.d/ http://repo.webtatic.com/yum/webtatic.repo
    echo 'exclude=php*5.3*' >> /etc/yum.conf
    yum --enablerepo=webtatic --exclude=php*5.3* update -y php
    yum --enablerepo=webtatic --exclude=php*5.3* install -y php-xml php-dom php-mcrypt php-gd php-mbstring php-mhash
    yum --enablerepo=webtatic --exclude=php*5.3* upgrade -y php-xml php-dom php-mcrypt php-gd php-mbstring php-mhash

    service httpd restart
    echo '';
    echo '';
    echo " ==========   www.CTOHome.com   ============"
    echo " ==========      PHP Version    ============"
    php -v
    echo '';
    echo '';

     

     

     

     

    方法2

    rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

     

    [utterramblings]
    name=Jason's Utter Ramblings Repo
    baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
    enabled=1
    gpgcheck=1
    gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

     

     

    vi /etc/yum.conf

    最后一行增加

    exclude=php*5.3*

     

     

      subversion SVN centos 6

      svn checkout http://xxxxx.rev.dedibox.fr/svn/projet /home/gestion/public_html


      #!/bin/sh
      export LANG=en_US.UTF-8
      SVN=/usr/bin/svn
      WEB=/home/gestion/public_html
      $SVN update $WEB --username xxxx --password xxxxx --non-interactive

       

      find /home/gestion/public_html -name .svn -exec rm -rf {} \;


      svn add *


      svn -m first commit

        U盘 启动 X61 不识别 解决

        • April 1, 2012
        • Published in 主机

        我开始的时候BIOS设置是默认设置的,真的是识别几率小到可怜,根本来不及认出U盘来(因为读卡器指示灯没亮起来过)。
        感觉开机自检速度快到根本不给我机会,所以将Boot Mode由Quick调整为Diagnostics,我要看看在开机启动诊断模式下,有没有机会识别U盘启动盘,呵呵,结果成功了,识别率很高,最起码我试了5、6回都可以进入U盘启动的。

         

        选择 DIago 启动模式 内存自检时

        u盘 拔下 插入 就可以识别

          How To Configure Yum To Exclude A Mirror

          Many of us have suffered from failing package repository mirrors. Some are slow, some won't have updated content, etc. You might want to remove/blacklist a particular mirror in your yum configuration.

          Before trying to remove a mirror, install the fastest mirror plugin.

          yum install yum-fastestmirror -y

          The fastest mirror plugin is capable of determining mirror speeds and cache it. If that works for you well and good.

          If not, manually exclude a mirror in /etc/yum/pluginconf.d/fastestmirror.conf. Use the exclude variable and set its value to the URL to be blacklisted.

          Example

          exclude = fedora.iitm.ac.in

            Zend Server安装

            安装完成因Zend Server存在配置文件编码的错误,需要手工做更改。

            用记事本打开D:\Program Files\Zend\ZendServer\etc\ZendEnablerConf.xml文件。

            将 锘??xml version="1.0" encoding="UTF-8"?>

            更改为< xml

             

            在控制面板中打开Apache Service Monitor(右键点击图中第二排第一个图标) 重新启动Apache(点击Restart按钮)

              Subscribe to this RSS feed
              Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 18

              Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34

              Notice: Undefined offset: 2 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34

              Notice: Undefined offset: 3 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34

              Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/user.php on line 145

              Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 18

              Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34

              Notice: Undefined offset: 2 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34

              Notice: Undefined offset: 3 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34