你正在浏览的是 知识收藏 目录

Linux下给普通用户添加Sudo权限

0 ~o~

首先使用有sudo权限的账户登录系统,然后运行
# sudo nano /etc/sudoers ,
找到 root ALL=(ALL) ALL 后,在下一行添加
UserName ALL=(ALL) ALL 即可。

yum升级PHP到5.2

0 ~o~

原文如下写的挺好的 我就不重新写啦

失败的情况是:
首先参看系统的php版本
# rpm -qa |grep php
php-common-5.1.6-20.el5_2.1
php-cli-5.1.6-20.el5_2.1
php-5.1.6-20.el5_2.1
php-ldap-5.1.6-20.el5_2.1
然后看到此版本不是最新的用下面的命令升级
# yum -y update php
Loading “fastestmirror” plugin
Loading mirror speeds from cached hostfile
* base: centos.candishosting.com.cn
* updates: centos.candishosting.com.cn
* addons: centos.candishosting.com.cn
* extras: centos.candishosting.com.cn
Setting up update Process
Could not find update match for php
No Packages marked for Update
说没有可以升级的php版本,而官方的php都是最新的了,php是5.2.*的了 可是centos系统的还是5.1.
解决思路:是由于centos系统自带的源里面的php版本没有更新,需要额外的源才可以升级php和mysql
办法:更新系统的源,然后在升级就可以解决了。
#vi /etc/yum.repos.d/zongguofengcn.repo (原来没有这个文件的新建就可以了)
[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
保存此文件wq
再次运行下面的命令就可以完成php的升级了
#yum -y update php

CentOS平台OpenVPN(UDP53端口)架设

2 feet

据说,53 DUP端口的VPN可以突破CMZZ和CHINANET的验证而免费上网,所以研究起OpenVPN,搭建一个特殊的VPN。 

为什么说这个VPN特殊呢,特殊在于是OpenVPN,OpenVPN可以在openvz的VPS上跑,比起PPTP,PPTP只能在xen的架构跑,而大多数VPS是基于OpenVPN的。 

另外,VPN走的是DNS端口,这个的好处就是如果学校有计费系统,或者周围有电信,移动的WIFI热点,多数情况下是可以越过计费系统直接上网的。 
阅读全部>>

舟山小游

1 foot


沙滩上惊现不明物体~~呵呵。
阅读全部>>

Nginx 0.8.x + PHP 5.2.13(FastCGI)编译安装

0 ~o~

源自:http://blog.s135.com/nginx_php_v6/

Page 3 of 6 12345...Last»