技术文章
Ueditor单独调用图片上传和附件上传功能
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src=”ueditor/ueditor.config.js” type=”text...
PHP中imagecopyresampled参数详解
bool imagecopyresampled ( resource $dst_image , resource $src_image , int $dst_x , int $dst_y , int $src_x , int $src_y , int $dst_w , int $dst_h ,...
大量用户登录解决方案
百度、QQ、360等大公司都拥有上亿的用户量。不仅所有子网站都通过一个账号登录,而且还开放用户平台,提供给其他网站使用。这种级别的数据量和访问量 如果不...
Linux下安装Memcache
官方:
Memcache是一个高性能的分布式的内存对象缓存系统,通过在内存里维护一个统一的巨大的hash表,它能够用来存储各种格式的数据.简单的说就是将数据调用到...
FTP下创建虚拟账户db_load
Linux_FTP配置虚拟用户问题
执行db_load -T -t hash -f login.txt /etc/vsftpd/vsftpd_login.db时报错
-bash: db_load -T -t hash -f login.txt /etc/vsftpd/...
ftp 500 OOPS: could not bind listening IPv4 socket
登陆本地端的ftp时,出现下列登陆的错误
#ftp localhost
Connected to localhost.
500 OOPS: could not bind listening IPv4 socket
检查vsftpd状态,可知已...
bash: ftp: command not found
当运行ftp localhost 提示bash: ftp: command not found 命令不存在
这主要是因为ftp包不存在,只需要安装即可#yum install ftp
linux xinetd 服务不能启动
安装完ftp后,用默认的xinetd启动方式启动时出现 xinetd: unrecognized service 这个主要原因是没有安装xinetd 包,需要安装此包
#yum -y install xinetd
安...
查看centos中的用户和用户组的方法
用户列表文件:/etc/passwd
用户组列表文件:/etc/group
查看系统中有哪些用户:cut -d : -f 1 /etc/passwd
查看可以登录系统的用户:cat /etc/passwd | grep...
开机自启动nginx
使用的是编写shell脚本的方式来处理
vi /etc/init.d/nginx (输入下面的代码)
#!/bin/bash
# nginx Startup script for the Nginx HTTP Server
# it is v.0.0...
chkconfig的使用方法
chkconfig的使用方法
chkconfig(check config)
功能说明:检查,设置系统的各种服务。
语 法:chkconfig
[–add][–del][–list][系统服务...
CentOS如何将程序设置为开机自动运行
有些时候我们需要在服务器里设置一个脚本,让他一开机就自己启动。方法如下:
cd /etc/init.d
vi youshell.sh #将youshell.sh修改为你自己的脚本名
编写自...
ecshop里面的截取UTF-8编码下字符串的函数
function sub_str($str, $length = 0, $append = true)
{
$str = trim($str);
$strlength = strlen($str);
if ($length == 0 || $length >= $strlength)
{...