主机 (17)

U盘 启动 X61 不识别 解决

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

更改google Cpanel界面语言

虽说Cpanel是支持多国语言的,但是它不像Vista Panel一样,自动识别使用的语言,Cpanel第一次登陆默认的语言为英文,需要自己手动更改一下。 Cpanel第一次登陆的时候会弹出一个自动向导,点击No,Thanks,I’m fine跳过。然后点击preferences中的Change Language,Set Language to 后的下拉框选择Chinese(中文),单击Change即可将Cpanel界面语言更改为中文! Cpanel语言更改后,以后每次登陆就都是之前设置的语言了,有需要也可以再自行更改!
Read more...

rc.local

/etc/rc.d/rc.local似乎是很多linux系统管理员的偏爱,因为凡是需要随系统自动启动的服务、程序等,只要系统没有提供Sys V风格的启动脚本,就把这些需求都塞到/etc/rc.d/rc.local。 当然,绝大部分情况下,你会发现这一切都工作得很正常,看上去也很美好。不过,当你遇到了一些诡异的问题的时候,也许你应该好好的去看看/etc/rc.d/rc.local里都写了什么了? 虽然/etc/rc.d/rc.local 的描述是你可以把你需要的自动启动的程序放到这里,不过那仅仅只是限于没有别的地方可以放置了,或者说系统也没有提供其他办法了,我们才这么干,然而实际 上,我碰到的很多/etc/rc.d/rc.local里放置的内容,其实系统提供了更好的处理方式
Read more...

webmin

Webmin 是目前功能最强大的基于Web的Unix系统管理工具。管理员通过浏览器访问Webmin的各种管理功能并完成相应的管理动作。目前Webmin支持绝大 多数的Unix系统,这些系统除了各种版本的linux以外还包括:AIX、HPUX、Solaris、Unixware、Irix和FreeBSD等。 Webmin 让您能够在远程使用支持 HTTPS (SSL 上的 HTTP)协议的 Web 浏览器通过 Web 界面管理您的主机。这在保证了安全性的前提下提供了简单深入的远程管理。这使得 Webmin 对系统管理员非常理想,因为所有主流平台都有满足甚至超出上述需求的 Web 浏览器。而且,Webmin 有其自己的“Web 服务器”,因此不需要运行第三方软件(比如 Web服务器)。万事具备。Webmin 的模块化架构允许您在需要时编写您自己的配置模块。除了在此介绍的模块之外,Webmin 还包括许多模块。尽管目前我们将主要关注网络服务,但是您会看到,几乎您系统的每一部分都能够通过 Webmin 来配置和管理。 Webmin的另一个可以看成其简化版本的主要针对普通用户的软件就是Usermin 官方网站:www.webmin.com 中文网:http://www.webmin.cn/ Webmin全球镜像中国站:www.webmin.com.cn
Read more...

Setup subversion client programs

by Børre Gaup Mac Windows Linux This document describes how to setup the svn client programs on Mac, Windows and Linux Mac Download a suitable graphical client: svnX program or RapidSVN. The commandline client program is part of the system if you have installed the Developer tools (included on your installation CD). You may still want to install a newer version if you are using MacOS X 10.4 (Tiger), though. Windows Download and install TortoiseSVN or RapidSVN. Linux To install the commandline version of subversion, issue either the command sudo apt-get install subversion or sudo yum install subversion There are…
Read more...

MYSQL添加新用户和数据库(命令行模式和phpmyadmin)

MYSQL添加新用户和数据库(命令行模式和phpmyadmin) 一、命令行模式 首先要声明一下:一般情况下,修改MySQL密码,授权,是需要有mysql里的root权限的。注:本操作是在WIN命令提示符下,phpMyAdmin同样适用。用户:phplamp用户数据库:phplampDB 1.新建用户 //登录MYSQL@>mysql -u root -p@>密码//创建用户mysql> insert into mysql.user(Host,User,Password) values('localhost','phplamp',password('1234'));//刷新系统权限表mysql>flush privileges;这样就创建了一个名为:phplamp 密码为:1234 的用户。 //退出后登录一下mysql>exit;@>mysql -u phplamp -p@>输入密码mysql>登录成功 2.为用户授权 //登录MYSQL(有ROOT权限)。我里我以ROOT身份登录.@>mysql -u root -p@>密码//首先为用户创建一个数据库(phplampDB)mysql>create database phplampDB;//授权phplamp用户拥有phplamp数据库的所有权限@>grant all privileges on phplampDB.* to phplamp@localhost identified by '1234';//刷新系统权限表mysql>flush privileges;mysql>其它操作 //如果想指定部分权限给一用户,可以这样来写:mysql>grant select,update on phplampDB.* to phplamp@localhost identified by '1234';//刷新系统权限表。mysql>flush privileges; mysql> grant 权限1,权限2,…权限n on 数据库名称.表名称 to 用户名@用户地址 identified by ‘连接口令’; 权限1,权限2,…权限n代表select,insert,update,delete,create,drop,index,alter,grant,references,reload,shutdown,process,file等14个权限。当权限1,权限2,…权限n被all privileges或者all代替,表示赋予用户全部权限。当数据库名称.表名称被*.*代替,表示赋予用户操作服务器上所有数据库所有表的权限。用户地址可以是localhost,也可以是ip地址、机器名字、域名。也可以用’%'表示从任何地址连接。‘连接口令’不能为空,否则创建失败。 例如:mysql>grant select,insert,update,delete,create,drop on vtdc.employee to This email address is being protected from spambots. You need JavaScript enabled to view it. identified by ‘123′;给来自10.163.225.87的用户joe分配可对数据库vtdc的employee表进行select,insert,update,delete,create,drop等操作的权限,并设定口令为123。 mysql>grant all privileges on vtdc.* to This email address is being protected from spambots. You need JavaScript enabled to view it. identified by ‘123′;给来自10.163.225.87的用户joe分配可对数据库vtdc所有表进行所有操作的权限,并设定口令为123。 mysql>grant all privileges on *.* to This email address is being protected from spambots. You need JavaScript enabled to view it. identified by ‘123′;给来自10.163.225.87的用户joe分配可对所有数据库的所有表进行所有操作的权限,并设定口令为123。 mysql>grant all privileges on *.* to joe@localhost identified by ‘123′;给本机用户joe分配可对所有数据库的所有表进行所有操作的权限,并设定口令为123。 3.删除用户 @>mysql -u…
Read more...

安装rpmforge yum源

CentOS 5 - install rpmforge yum repo Install DAG GPG key wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # download DAG GPG keyrpm --import RPM-GPG-KEY.dag.txt # import the keyrm RPM-GPG-KEY.dag.txt # clean up after ourselves Install yum-priorities yum install yum-priorities Download and install package (i386 - 32bit) wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpmrpm -Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm # install the rpmforge yum reporm rpmforge-release-0.3.6-1.el5.rf.i386.rpm # clean up after ourselves Download and install package (x86_64 - 64bit) wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpmrpm -Uhv rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm # install the rpmforge yum reporm rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm # clean up after ourselves Set priorities vim /etc/yum.repos.d/CentOS-Base.repo[base] or [updates] or [addons] or [extras]priority=1[centosplus]priority=2vim /etc/yum.repos.d/rpmforge.repo[rpmforge]priority=10
Read more...

( ! ) 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/category.php on line 191
Call Stack
#TimeMemoryFunctionLocation
10.0006411936{main}( ).../index.php:0
20.10504261872Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.10504261872Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.308111451640Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.309011475920Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.310111531248Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.310411558648require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.328111893840K2ControllerItemlist->execute( ).../k2.php:64
90.328111893840K2ControllerItemlist->display( ).../BaseController.php:710
100.344312800784K2ControllerItemlist->display( ).../itemlist.php:49
110.344312800784K2ControllerItemlist->display( ).../controller.php:19
120.347513015048Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.348413035736K2ViewItemlist->display( ).../ViewController.php:102
140.484816294512K2ViewItemlist->display( ).../view.html.php:1407
150.484816294512K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.485616362984include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701