官方论坛产品帮助刷图视频问题反馈

阿里云安装破解版(开心版)版DirectAdmin(DA)

发表于 秦海传媒

这两天很多人用阿里云,其实从阿里云开始做云服务器(就是我们常说的VPS一样的东西,只是叫法高级了点),我就用过,前前后后我还玩过好几次,可是一直没考虑过长期使用,主要的原因还是备案得转入阿里云的问题。其实认真想想,如果老老实实做个站,没有什么违规的内容的话,用阿里云也是非常不错的选择。
找了个盗版的DA装上去了,效果不错。

wget http://www.99288.net.cn/DA1.42.1.zip
vi /etc/yum.conf #remove kernel* 

yum -y update
yum -y install unzip lftp tar quota path 
yum -y install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed libstdc++.so.6 libnspr4.so  libssl.so.6 patch
yum -y install glibc.i686 openssl.i686 #64位需要
ln -s /usr/lib/libssl.so /usr/lib/libssl.so.10 #64位需要
ln -s /usr/lib/libcrypto.so /usr/lib/libcrypto.so.10 #64位需要
ln -sf /usr/lib64/libexpat.so /usr/lib/libexpat.so #64位需要
ln -sf /usr/lib64/libm.so /usr/lib/libm.so #64位需要
ln -sf /usr/lib64/libssl.so /usr/lib/libssl.so #64位需要
wget http://www.tdhd.com/DA1.42.1.zip
unzip DA1.42.1.zip
mkdir -p /usr/local/directadmin
tar xvf  update2.tar.gz  -C /usr/local/directadmin
chmod 755 setup.sh
./setup.sh

DirectAdmin(DA)面板安装中文语言包
破解DA已经包含此皮肤:DirectAdmin(DA)安装Capri皮肤
DirectAdmin下PHP探针不显示系统信息(内存和系统负载)

电信通云主机卸载无用软件包

发表于 秦海传媒

1.设置putty支持中文。
changseting=》window=》appearance=>change 选择字体;
changseting=》window=》Translation=>UTF-8 设置编码;

2.设置服务器源:

cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.bak
wget http://centos.ustc.edu.cn/CentOS-Base.repo.5
mv CentOS-Base.repo.5 CentOS-Base.repo
cat CentOS-Base.repo

3.删除不需要的软件


yum groupremove "Desktop" "Desktop Debugging and Performance Tools" \
   "E-mail server"   "General Purpose Desktop"   \
 "Graphical Administration Tools " "KDE Desktop" \
   "Legacy X Window System compatibility"    "MySQL Database client " \
"MySQL Database server" "PHP Support"  "Perl Support"  \
 "Remote Desktop Clients"    "Web Server"    "Web Servlet Engine"  \
  "X Window System TurboGears application framework"  \
 "Dial-up Networking Support"

CentOS安装OpenVZ

发表于 秦海传媒

vzctl create 101 \
--ostemplate centos-5-i386-afull \
--conf vps.basic \
--ipadd 168.254.7.130 \
--hostname mynew.container.com

二、开始安装OpenVZ

1.安装核心

#cd /etc/yum.repos.d
# wget http://download.openvz.org/openvz.repo

yum search ovzkernel

根据你的服务器环境安装需要的核心


ovzkernel-PAE-devel.i686 : Development package for building kernel modules to match the PAE kernel.
ovzkernel-PAE.i686 : The Linux kernel compiled for PAE capable machines.
ovzkernel.i686 : Virtuozzo Linux kernel (the core of the Linux operating system)
ovzkernel.i686 : Virtuozzo Linux kernel (the core of the Linux operating system)
ovzkernel-devel.i686 : Development package for building kernel modules to match the kernel.

如果你内存多过4G请安装ovzkernel-PAE,但现在服务器的内存只有3GB所以就安装这个把。

yum install  ovzkernel-xen.i686

2.修改启动文件

# vi /boot/grub/grub.conf

default=0
title CentOS (2.6.18-92.1.18.el5.028stab060.2)

当启动服务器时使用OpenVZ的核心。

3.修改核心模组文件

# vi /etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0

net.ipv4.conf.all.rp_filter = 1

kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0

# sysctl -p 檢查是否有錯誤的輸入

修改 /etc/modprobe.conf 載入 options ip_conntrack ip_conntrack_enable_ve0=1   ## vzcpt   模組

4.重启服务器,使用新的核心与模组


vzethdev               16268 0 
vzrst                 145940 0 
ip_nat                 22288 1 vzrst
vzcpt                 116260 0 
ip_conntrack           60356 3 vzrst,ip_nat,vzcpt
ipip                   17796 2 vzrst,vzcpt
tun                    15872 2 vzrst,vzcpt
vzdquota               43924 6 [permanent]
vznetdev               21384 12 
vzmon                  49292 10 vzethdev,vzrst,vzcpt,vznetdev
ipv6                  284924 180 vzrst,vzcpt,vzmon
vzdev                   7556 6 vzethdev,vzdquota,vznetdev,vzmon

这些就是OpenVZ的模组.

有网络、磁盘、磁盘配额、迁移、输入、监察这些部分。

5. 安装OpenVZ 主要的控制软件

yum install vzctl vzquota xdelta -y
rpm -ivh http://download.openvz.org/contrib/utils/vzdump/vzdump-1.0-2.noarch.rpm
rpm -ivh http://download.openvz.org/contrib/utils/vzprocps-2.0.11-6.13.swsoft.i386.rpm

6. 启动服务

# /sbin/service vz start

安装好啦!等下一节教大家如何使用OpenVZ吧!

Frankly, I don’t know more details about HyperVM.
So I went to try it to install the HyperVM from my dedicated server.
Installation HyperVM is damn very easy, and just 1 little linux syntax.

After the fresh install, I get this error message, when I tried to add a Virtual Machine on tab OpenVZ :

no_servers_configured_for_this_driver

By, default HyperVm is adding Xen Driver it self. So, you must add the OpenVZ driver in your HyperVM.
Simply login to your hyperVM admin control http://:8887 and use admin user details, then go to menu on the left frame ‘Admin -> Administration -> Servers’, then ‘Add server’

There you add the Ip/Hostname and the Password, HyperVM will automatically detect the driver.
Then you could add OpenVZ Virtual Machine.

Namecheap 6月0.98美元注册域名优惠

发表于 秦海传媒


https://www.namecheap.com/promos/exclusive-promo-0-98-domain-wedfcv.aspx?aff=41719

php mail函数在win下的使用,以及配置win下的sendmail

发表于 秦海传媒

昨天安装的sendmail一直失败,最后换成了本地SMTP。今天又尝试了下,发现使用FastCGI模式时,SendMail失败。
SendMail下载:http://glob.com.au/sendmail/

mail函数在win里可以通过配置php.ini来正常使用
打开php.ini

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = me@example.com
; For Unix only.  You may supply arguments as well (default: ”sendmail -t -i”).
; sendmail_path = ”"
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

设置SMTP,smtp_port,sendmail_from。分别是pop3服务器地址,端口号这两个一般默认,sendmail_from设置的是发件人邮箱
注意的是这里需要的pop3服务器是不需要身份验证的那种而且不能使用安全方式连接的。国内有些没有提供不验证服务的…在服务器上装上smtp组件就可以了,安装方法很多网上都有
如果不打算让本机成为smtp服务器,可以使用linux常用的sendmail,这样可以通过验证使用国内的一些服务器的pop3服务器,建议是qq或者foxmail个人感觉腾讯的速度和稳定都不错。
经测试目前163、新浪的SMTP无法使用,qq和foxmail可以用,其他没测试…
win下怎么配置呢

[mail function]
; For Win32 only.
; SMTP = localhost
; smtp_port = 25
; For Win32 only.
; sendmail_from = me@example.com
; For Unix only.  You may supply arguments as well (default: ”sendmail -t -i”).
sendmail_path = ”d:/soft/sendmail/sendmail.exe -t -i”
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

按上面的方式把前面说的三个选项前面都加上分号,把sendmail_path前面的分号去掉下载下面的文件:
sendmail压缩包
解压后找个地方放好,将里面sendmail.exe的地址填到sendmail_path并如上面所写增加-t -i参数(更多参数自己查吧)。
打开:sendmail.ini文件
修改里面的

smtp_server=smtp服务器地址
auth_username=邮箱登录名
auth_password=邮箱密码
force_sender=发件人地址全写

ok了mail函数可以正常使用了,注意如果iis使用cgi模式运行php的话用sendmail方法会出错,修改为ISAPI模式后一切正常了。

Google ADs

除非另有声明,本站文章遵循知识共享署名-非商业性使用 2.5 中国大陆许可协议。 Copyright © 2008-2012 99288.NET.CN.