友情提示:小程序,开发制作。

类别《linux》下的文章:

Linux下注册Apache为系统服务

Linux下注册Apache为系统服务 

1:vi /etc/rc.d/rc.local
增加:/usr/local/httpd/bin/apachectl start

2:[注册为Service]
cp /usr/local/httpd/bin/apachectl /etc/rc.d/init.d/httpd
vi httpd
找到:#!/bin/sh
另起一行,增加:
# chkconfig: 35...

阅读全文>>

编译安装php时提示Cannot find MySQL header files的解决方法

php的配置文件中有一行--with-mysql=/usr。安装的时候提示:

configure: error: Cannot find MySQL header files under yes.
Note that the MySQL clie...

阅读全文>>

不重启linux修改selinux状态以及修改系统默认语言

不重启linux修改selinux状态以及修改系统默认语言


1.在不重启linux的情况下 关闭selinux  
# setenforce 0
2.在不重启linux的情况下 更改系统默认的语言
# vim /etc/sysconfig/i18n
改为中文:
LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312...

阅读全文>>

安装Apache提示APR not found的解决办法


安装Apache提示APR not found的解决办法

#./configure --prefix……检查编辑环境时出现:
checking for APR... no
configure: error: APR not found .  Please read the documentation.

可以用./configure –help | grep apr&nbs...

阅读全文>>

rsync服务器架设

rsync服务器架设


什么是rsync
rsync的安装
rsync服务器的配置文件rsyncd.conf
rsyncd.conf文件代码说明
启动rsync 服务器及防火墙的设置
通过rsync客户端来同步数据
让rsync 客户端自动与服务器同步数据

我们在使用服务器发布我们的网站的时候,通常要考虑到文件的备份,而文件的备份比较高效的备份是增加备份,rsync软件就是这样的一个工具。为了实现多个服务器负载均衡...

阅读全文>>

硬盘安装Linux Mint

硬盘安装Linux Mint

此页由Linux Wiki用户Chenxing于2012年2月5日 (星期日) 04:09的最后更改。

Linux Mint 是Ubuntu的一个变种,可以直接使用Ubuntu的硬盘安装方法完成硬盘安装

准备工作

准备光盘镜像

首先下载Mint的Live CD,如LinuxMint-6.iso,最好放在分区的根目录下,不要修改文件名,以便安装程序寻找。分区格式可以是...

阅读全文>>

linux 发行版


linux 发行版

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName


httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

解决办法非常简单:

#vim /web/apache/conf/httpd.conf (在这里/web/apahce是我安装apache的目录,你默认安装的话应该是/usr/local/apache2/icons)

找到#ServerName www.example.com:80   把#去掉,再重启apache即可没事了。

resolv.conf 配置详解和实例

nameserver   #定义DNS服务器的IP地址
domain       #定义本地域名
search       #定义域名的搜索列表
sortlist     #对返回的域名进行排序
/etc/resolv.conf的一个示例:

domain ringkee.com
search www.ringkee.com ringkee.com
nameserver 202.96.128.86
nameserver 202.96.128.166

screen 命令的使用方法


 screen命令的使用方法
通过putty或者SecureCRT安装lnmp时,网络突然掉线或者不小心putty被关掉等等原因,造成lnmp安装过程被中断怎么办,其实防止这种现象很简单,只要在安装lnmp前执行screen命令就可以了。

执行:screen -S lnmp 创建screen会话

如果网络掉线,可以重新连接,再执行 screen -r lnmp 就会看到你的lnmp安装进程。

用screen -ls可以看所有的screen sessions

用screen -r sessionid可以进sessionid指定的特定的screen session

阅读全文>>