- 博客(16)
- 资源 (17)
- 收藏
- 关注
转载 PHP网站ip限制访问
$ALLOWED_IP = array( '127.0.0.1', '58.215.3.xx',);//检查ip信息function check_ip(){ global $ALLOWED_IP; $IP=__getIP(); $check_ip_arr= explode('.',$IP);//要检测的ip拆分成数组 #限制IP
2016-06-30 15:16:42 1976
原创 Oracle数据库 乱码问题
场景:php连接linux的oracle数据库时,发现读取的数据是乱码。用的 sqlplus导入的。编码格式UTF8。 发现问题:用客户端登录oracle后发现,是数据库导入的内容就已经乱码了。 解决过程:查看oracle数据库编码:$ sqlplus / as sysdbaSQL> select * from v$nls_parameters where parameter='NLS_CH
2016-06-30 11:34:57 431
原创 oracle 数据库操作命令集合汇总
·切换oracle用户# su - oracle·登录连接库$ sqlplus /nologSQL> conn / as sysdba --系统用户SQL> conn username/pwd --其他用户 用户名/密码·创建用户SQL> CREATE USER user IDENTIFIED BY pwd; #创建SQL> GRANT DBA TO user; #分配权限
2016-06-29 17:04:16 393
原创 Linux git安装、升级
所需依赖扩展:# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker下载解压:# wget https://github.com/git/git/archive/v2.3.0.zip安装:# unzip v2.3.0.zip# cd git-
2016-06-25 11:23:32 544
原创 Linux 没有lszrz yum源,lszrz安装
Linux 终端使用上传rz、下载sz命令# wget http://down1.chinaunix.net/distfiles/lrzsz-0.12.20.tar.gz# tar zxvf lrzsz-0.12.20.tar.gz# cd lrzsz-0.12.20# ./configure# make# make install## cd /usr/bin# ln -s /usr
2016-06-25 11:19:11 10610
原创 Linux 查看iptables状态-重启
Linux 查看iptables状态-重启iptables 所在目录 : /etc/sysconfig/iptables# service iptables status #查看iptables状态# service iptables restart #iptables服务重启# service iptables stop #iptables服务禁用
2016-06-25 11:15:01 35827
原创 Apache & nginx 的地址重写 url_rewrite,省略 index.php
Apache url_rewrite:LoadModule rewrite_module modules/mod_rewrite.so<IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUE
2016-06-25 11:13:27 621
原创 Oracle 数据库开启关闭 及 端口监听相关命令
Oracle 数据库管理$ ctl status all //查看当前状态 $ ctl stop all //停止数据库 $ ctl start all //启动数据库端口监听查看$ lsnrctl start$ lsnrctl stop$ lsnrctl stat
2016-06-25 10:59:51 1268
原创 Mysql 数据库的数据大小查看:
Mysql 数据库的数据大小查看:1、进入information_schema 数据库(存放了其他的数据库的信息)mysql-> use information_schema;2、查询所有数据的大小:mysql-> select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables;3、查看指定数据库的大小:比如查看
2016-06-25 10:58:35 1269
原创 Linux下启动相关oracle服务与监听的命令
Linux下启动相关oracle服务与监听的命令启动监听:$ lsnrctl start $ lsnrctl stop启动服务: # su oracle $ sqlplus /nolog SQL> connect /as sysdba SQL> startup (启:)SQL> shutdown immediate (停:)$ oemapp dbastudio 打开企业管理器图形界面
2016-06-25 10:56:16 718
原创 Linux下更改swap大小方法:
Linux下更改swap大小方法: 以下操作需要root权限,# cd /usr/# mkdir swap# cd swap# dd if=/dev/zero of=swapfile bs=4G count=4这条命令从硬盘里分出一个 4×4G 大小的空间,挂在swapfile上。# mkswap swapfile构建swap格式于/usr/swap/swapfile 上# swapon
2016-06-25 10:52:22 1934
原创 Linux安装软件 X64 变换版本 X86
Linux安装软件 64bit 变换版本 32bitX64的包,去掉后缀,后面加 .i686 cat /tmp/or.log | while read line; do yum -y install $line.i686;done
2016-06-25 10:47:52 411
原创 Linux 查找目录文件 内容 给出文章目录结构
Linux 查找目录文件 内容 给出文件目录# find ./ -name “*.php” | xargs grep “feng”
2016-06-25 10:43:11 306
翻译 git https方式pull、push时,提示:error: unable to read askpass response from '/usr/libexec/openssh/gnome-ssh
git https方式pull、push时, 老是提示: (gnome-ssh-askpass:12666): Gtk-WARNING **: cannot open display: error: unable to read askpass response from ‘/usr/libexec/openssh/gnome-ssh解决办法: 关闭SSH_ASKPASS# unset SS
2016-06-24 15:30:20 13647 4
翻译 Linux php-oracle扩展安装
Linux php-oracle扩展安装1.下载所需文件:# wget http://download.csdn.net/detail/u010211892/9010157# wget http://download.csdn.net/detail/happy_gao/8247809# wget http://pecl.php.net/get/oci8-2.0.6.tgz2.具体安装:①基础客户
2016-06-24 14:57:16 2884
Postman chrome插件
2016-12-20
史上最全的苦逼程序猿必备帮助手册chm s
2013-01-08
IEWatch Setup
2012-10-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人