
作者
本站作者 我好笨 共计发布文章974篇

为了这个错误编译了好几个小时。
原由是因为我在服务器上安装了oracle18c的服务器程序,肯定就设置了$ORACLE_HOME等变量。
编译Oci的时候,php默认就是用这个编译了,然后连接oracle报错如标题。
这里有个技巧就是在Phpinfo中可以看到oci编译使用的oracle_home,如下:
Compile-time ORACLE_HOME /usr/...

其他技术vmware挂载了windows的共享目录给nginx使用的默认用户组的问题
之前有一篇文章:https://www.144d.com/post-566.html
里面讲到了如何挂载了,这里就不多说了,说一下查看uid和gid的命令,原谅我这个小白
id www
就会返回用户的uid和gid
然后把上文中挂载那句话改成:
.host:/VM_Shared /mnt/hgfs fuse.vmhgfs-fuse allow_other,uid=你的U...

其他技术centos7编译安装redis-5.0.4,并配置服务
$ wget http://download.redis.io/releases/redis-5.0.4.tar.gz
$ tar xzf redis-5.0.4.tar.gz
$ cd redis-5.0.4
$ make
安装完成后,可执行文件在当前目录的src下。
cp redis-5.0.4当前目录下的redis.conf到/etc/redis/redis.conf
...

其他技术CentOS-7-x86_64-Minimal-1810安装oracle18c全纪录
安装centos minmal
系统更新,yum update
安装ifconfig,yum install net-tools
--------------rpm安装实际都不需要图形界面了--------------
安装X Window System(两百多个文件):yum groupinstall "X Window System"
安装图形用界面gnome...
![PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: parameter was not defined PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: parameter was not defined](https://www.144d.com/content/templates/J2/images/random/12.jpg)
php开发PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: parameter was not defined
今天在用pdo处理oracle的查询时,遇到这个问题,全部使用的?作为占位符,然后给定的一个数组
生成的SQL语句如下:
update model_test set name=?,birth=to_date(?,'yyyy-mm-dd hh24:mi:ss'),sui=?,jianjie=? where (uuid='?')
关键问题就在这个where字句,用?作为占位符...

其他技术Linux SoftEther Client 的配置要点
有些项目现场需要连到公司网络,用这个软件配置windows下很容易。
新手在Linux下配置客户端,有点恼火,我就是。
实际可以进入clent命令行后通过:
RemoteEnable
开启远程配置,用windows客户端来配置,就很容易的。
windows下选择管理远程电脑上的SoftEther Client ,输入电脑IP就可以了。

其他技术dbstart: 未找到命令
oracle 12c在centos最小化下安装后,数据库不随机启动,
按照网上的教程,编辑了/etc/oratab文件
增加了rc.local文件
结果还是不随机启动,通过:
systemctl status rc-local.service
可以看到服务启动失败,提示如标题:dbstart: 未找到命令
将dbstart改为全路径,提示找不到文件,最后...

其他技术xauth: file /home/oracle/.serverauth.17047 does not exist
centos安装oracle,启动桌面的时候,使用oracle账户报错:
xauth: file /home/oracle/.serverauth.17047 does not exist
(EE)
Fatal server error:
(EE) PAM authentication failed, cannot start X server.
Perha...

其他技术js里返回字符ok与字符ok比较不相等的问题
可以看看服务端是直接输出的字符,还是输出的Json。
如果输出的json,客户端用console.log输出看到的是ok,firebug之类的工具看到也是ok,
但是用代码:
var jmz = {};
jmz.GetLength = function(str) {
return str.replace(/[\u0391-\uFFE5]/g,"aa")....

其他技术System.ArgumentException: 找不到 http://server.hwt.com/:WsProvinceServer 的定义。缺少命名空间
System.ArgumentException: 找不到 http://server.hwt.com/:WsProvinceServer 的定义。缺少命名空间为 http://server.hwt.com/ 的服务说明。
参数名: name
在 System.Web.Services.Description.ServiceDescriptionCollection.GetService...

其他技术补上一篇报错502或者504的文章
原文地址:https://blog.csdn.net/hanzengyi/article/details/80181492
同样的用途,定时任务耗时太久,在Lnmp集成环境下会报502或者504
解决方案备份:
问题描述:定时任务控制器总是异常终止,查找原因,直接访问该任务url,先提示:504 Gateway Time-out,改了fastcgi_connect_time...

其他技术oracle查看当前连接用户
select * from v$session WHERE status='ACTIVE';

php开发HTTP request failed! HTTP/1.1 502 Bad Gateway#015) LNMP
lnmp集成环境执行PHP稍微时间久点会出现502,其他情况下正常
参考文章:
http://www.heminjie.com/network/2137.html
改了下配置参数,暂时没有出现502了
原文备份如下:
第一种原因:
LNMP没有安装成功,脚本中某些lib包可能没有安装上,造成php没有编译安装成功。可以看一下是否存在/usr/local/p...

php开发AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
windows下apache的假死,有时候可能是就是因为这个原因造成的
需要启用mpm模块
# Server-pool management (MPM specific)
Include conf/extra/httpd-mpm.conf (去掉该行前面的注释符号"#")
然后修改:
#由于mpm_winnt模块只会创建1个子进程,因此这里对单个子进程的参数设置就相当于对...

php开发PHP的soapheader问题
PHP写的服务端,如果通过header验证需要注意一下
soapui工具里添加的header是放在$_SERVER数组中的。
而PHP的soapheader添加的,是放在soap原始请求中的,需要通过获取
MessageServer::soaputils_autoFindSoapRequest();
原始请求来取得。
部分服务端解析:
$username=iss...

php开发loadXML(): Extra content at the end of the document in Entity
今天被一个soap坑死了,上次调试都没有问题,今天突然死活不通,获取不到值。根本原因还是基础不牢,xml的基础知识不清楚。
逐步调试,发现loadXML过后,就没有内容,因为是soap,也没有报错。
本地调试发现错误:
loadXML(): Extra content at the end of the document in Entity
经搜索发现,导致这...

其他技术frp配合FileZilla Server搭建FTP映射
经实践,可行的一篇文章分享:
https://blog.csdn.net/shile/article/details/74392125
主要点子:
1、Passive mode settings的use custom port range 设置为50000到50002
2、frpc配置
[ftp21]
type = tcp
local_ip =...

其他技术Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
PHP7.3中在switch中使用continue语句会出现如题警告。
while ($foo) {
switch ($bar) {
case "baz":
continue; // In PHP: Behaves like "break;"
// In C: Behaves l...