06 2016 档案
摘要:if $this->ali = 0; 1、new wechat() //该类存于PigCms/lib/ORG/Wechat.class.php 2、list($content,$type) = $this->reply($data); 3、$weixin->response($content,$ty
阅读全文
摘要:# Windows查看Apache版本: 使用命令:httpd -v # Linux查看Apache版本: 使用命令:apachectl -v # Windows查看MySQL版本: 使用命令:mysql --version # Linux查看MySQL版本: 使用命令:mysql -V # Win
阅读全文
摘要:# 查看区域 firewall-cmd --get-zones # 查看默认区域 firewall-cmd --get-default-zone # 给区域添加永久性服务 firewall-cmd --add-service=http --zone=public --permanent # 删除区域
阅读全文
摘要:# 查看正在运行的服务 systemctl # 查看某个服务的状态 systemctl status httpd.service # 启动服务 systemctl start foo.service 如:systemctl start httpd.service # 停止服务 systemctl s
阅读全文
摘要:列出服务和他们对应的端口: netstat -tulpn
阅读全文
摘要:查看内网:ip addr 查看公网:curl members.3322.org/dyndns/getip
阅读全文
摘要:1、使用yum安装 yum -y install httpd mysql mysql-server php php-mysql postgresql postgresql-server php-postgresql php-pgsql php-devel 2、配置httpd 2.1、启动httpd服
阅读全文
摘要:解决办法: 1、开放权限 使用命令:chmod -R 777 文件路径 2、关闭SELinux 使用命令:setenforce 0
阅读全文
摘要:在php.ini 中没有找到"extension=php_gd2.dll"这行代码,这是因为CentOS一般没有预装GD库。 解决办法: 1、在线安装GD库 yum -y install php-gd 2、#重启apache,使其生效 service httpd restart
阅读全文
摘要:语法:select * from 表名 where (字段名) in (select 字段名 from 表名 group by 字段名 having count(*) > 1); 如一下goods表: : 执行sql语句:select * from goods where inventory in
阅读全文
摘要:语法:update 表名 set 字段名 = replace(字段名,'替换前内容','替换后的内容') where 条件。 如: 执行sql语句:update student set name = replace(name,'白','黑') where name like '%白%';
阅读全文
摘要:# 创建学生表 create table student(age int,name varchar(32))engine myisam charset utf8;insert into student values(18,'小白'); # 创建教师表,结构与学生表结构一模一样create table
阅读全文

浙公网安备 33010602011771号