类别:
linux
作者:
sunshine / 2011-11-6 19:37 Sunday
LAMP组合就是在Linux操作系统上配置Apache服务器、MySQL服务器,PHP应用程序服务器,组成强大的Web动态网站开发平台.
Apache一直是世界使用排名第一的Web服务器软件。PHP、Aapache和MySQL的组合已经成为Web服务器的一种配置标准。
Webmin是一个基于web界面的linux系统管理工具,能够用web控制面板来管理你linux上的各种服务,Webmin的模块化架构允许您在需要时编写您自己的配置模块,本章将介绍修改模块管理web
系统:Centos 5.5
准备工具:
mysql-5.0.21.tar.gz
httpd-2.2.14.tar.gz
php-5.3.2.tar.gz
muddleftpd-md5-1.3.15-14..i386
webmin-1.530.tar.gz
阅读全文>>
类别:
linux
作者:
sunshine / 2011-11-6 19:02 Sunday
#允许目的端口为125的连接
iptables -t filter -A INPUT -p tcp --dport 125 -j ACCEPT
#允许本地的回环
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -o lo -j ACCEPT
#防止ip欺骗,因为出入eth1的包的ip应该是公网ip
iptables -A INPUT -d 192.168.25.0/24 -i eth1 -j DROP
iptables -A INPUT -s 192.168.20.0/24 -i eth1 -j DROP
iptables -A OUTPUT -d 192.168.20.0/24 -o eth1 -j DROP
iptables -A OUTPUT -s 192.168.20.0/24 -o eth1 -j DROP
阅读全文>>
类别:
windows
作者:
sunshine / 2011-11-6 15:50 Sunday
此 脚本 本人原创。(收集加修改)
@echo 请根据您的需要进行更改项目。by operation——SunShine
@echo ---------------------------------
echo 1-- 按顺序 修改网卡信息--计算机名--重命名用户并修改密码
echo 2-- alter—network
echo 3-- computer_name
echo 4-- alter(User/password)
echo 5-- New Document (hi_chinabackup/hi_rescoveryback)
echo 6-- clear rubbish
echo 7-- exit
@echo --------------------------------- 阅读全文>>
类别:
yum
作者:
sunshine / 2011-11-6 14:25 Sunday
CentOS 5.3 通过yum升级php的方法
方法一 -------------------------------------------------------------------------------
CentOS5.3的php版本默认为5.1.6,然后在5.2.9版本之前的的php都存在一个漏洞,但是目前网上很多地方都无法使用yum update php*升级到
5.2.9,比较常见的是升级到5.2.6版本的,经过搜索国外资料,现在终于找到一种升级CentOS的php到5.2.9的方法。
注意,此方法只能在官方的php版本上升级,如果你使用网上的升级到5.2.6版本的升级方法已经升级了,将无法使用本方法升级php。
运行下面命令:
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/5/remi/i386/remi-release-5-7.el5.remi.noarch.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
然后编辑/etc/yum.repos.d/remi.repo
#vi /etc/yum.repos.d/remi.repo
在这个文件的最后增加一行:
priority=1
保存退出。
阅读全文>>
类别:
linux
作者:
sunshine / 2011-11-6 13:34 Sunday
NCServer的启动和设置
启动VNC Server:
(1)
#vncserver 第一次启动时要求你生成口令文件
You will require a password to access your desktops.
Password: 设置远程管理密码
Verify: 确认密码
用vncpasswd命令生成口令文件,当然也可以用此命令更改密码。
阅读全文>>
类别:
代码
作者:
sunshine / 2011-11-6 02:56 Sunday
<html>
<body>
<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" />
<br />
<input type="submit" name="submit" value="Submit" />
</form>
</body>
</html>
阅读全文>>