Mac我在mysql客户端Sequel Pro上连接mysql时会报错,回头看了【系统偏好设置】里面MySQL Server Status是The MySQL Server Instance is stopping状态。那么我在终端上尝试启动mysql服务:#sudo /usr/local/mysql/support-files/mysql.server stop#sudo /usr/local/mysql/support-files/mysql.server start出现以下错误:错误:ERROR! The server quit with...

阅读全文 »

supervisor stop all,但是程序还是会自动执行,reload之后看log,提示如下:*** Starting uWSGI 2.0.14 (64bit) on [Tue Apr 11 11:44:07 2017] ***compiled with version: 4.4.7 20120313 (Red Hat 4.4.7-17) on 24 March 2017 17:24:17os: Linux-2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013nodename: testmachine: x86_64clock source:...

阅读全文 »

2017年贷款买房还款方式有哪些?怎么还贷更划算?  2017年贷款买房还款方式有哪些?怎么还贷更划算?  等额本金还款法  释义:等额本金还款是指每月等额偿还贷款本金,贷款利息随本金逐月递减。即将本金分摊到每个月中,同时付清上一还款日到本次还款日之间的利息。  特点:随着时间的推移还款负担会逐渐减轻,还款前期压力较大。这种还款方式的好...

阅读全文 »

laravel 渲染页面 页面空白,控制台报500错误。路由return view(“welcome”),报500错误,Failed to load resource: the server responded with a status of 500 (Internal Server Error)准备看log日志竟然没生成日志。直接在路由中return “asss”字符串,Route::get('/', function () {    return “asss”;
  &nbs...

阅读全文 »

Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again环境:docker方式  CentOS6.5 镜像 [root@890592f45b6f yum.repos.d]# vim CentOS-Base.repo# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to ...

阅读全文 »

Centos6.5 yum 被锁,被占用 如何强制退出或者杀死yum进程。  看报错信息理解和windows下面文件被占用一样的道理。报错信息如下: [root@890592f45b6f yum.repos.d]# yum clean allExisting lock /var/run/yum.pid: another copy is running as pid 91.Another app is currently holding the yum lock; waiting for it to exit...  The oth...

阅读全文 »

两个办法:一、强制关闭电脑快捷键 同时按住 control + command + 电源键,不会损坏系统文件。二、和windows一样,长按电源开关6秒左右, 不确定会不会损坏系统文件。Mac软件卡死 怎么办呢,杀死进程软件 强制退出死的程序一、快捷键option+command+esc二、使用【活动监视器】退出程序。把鼠标移动到屏幕右上方按下 放大镜图标(Spotlight功能),然后输入【...

阅读全文 »

docker只做自己的镜像:docker如何push镜像到阿里云登录阿里云docker registry:$ sudo docker login --username=阿里云账号 registry.cn-hangzhou.aliyuncs.com登录registry的用户名是您的阿里云账号全名,密码是您开通namespace时设置的密码。从registry中拉取镜像:$ sudo docker pull registry.cn-hangzh...

阅读全文 »

docker: Error parsing reference: "。。。。" is not a valid repository/tagdocker: Error response from daemon: driver failed programming external connectivity on endpoint newlife (a94f5a6028c38e8cf87b870e84d7b6d28260204785b8c76389e2dbab52575c59): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRIN...

阅读全文 »

$str = "21.08";var_dump($str*10000);var_dump (intval($str*10000));var_dump((0.1+0.7) * 10 );var_dump((int) ( (0.1+0.7) * 10 ))  ; // 显示 7结果:float(210800)int(210799)float(8)int(7)原因分析:那么从浮点型转换当从浮点数转换成整数时,将向下取整。如果浮...

阅读全文 »

Xcode7 ,HelloOS,当初次学习Swift时编码完毕,run 时,涉及到了访问http资源,,在console 里面的消息如下:2016-07-26 01:45:39.712 L11HelloOS[2630:122784] App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure...

阅读全文 »

curl_setopt函数相关应用及介绍一、要想使用curl_setopt 这个函数必须在服务器里边进行编译curl这个组件,怎么安装编译这个组件请具体到google搜索二、curl_setopt的php帮助文档的解释bool curl_setopt (int ch, string option, mixed value) curl_setopt()函数将为一个CURL会话设置选项。option参数是你想要的设置,value是这个选项给定的值。下列选项的...

阅读全文 »

curl_setopt(PHP 4 >= 4.0.2, PHP 5)curl_setopt — 设置一个cURL传输选项说明bool curl_setopt ( resource $ch , int $option , mixed $value )为给定的cURL会话句柄设置一个选项。参数ch由 curl_init() 返回的 cURL 句柄。option需要设置的CURLOPT_XXX选项。value将设置在option选项上的值。对于下面的这些option的可选参数,value应该被设置一个bool类...

阅读全文 »

phpheadersslurlauthentication服务器bool curl_setopt (int ch, string option, mixed value)curl_setopt()函数将为一个CURL会话设置选项。option参数是你想要的设置,value是这个选项给定的值。下列选项的值将被作为长整形使用(在option参数中指定):    •    CURLOPT_INFILESIZE : 当你上传一个文件到远程站点,这个选项告诉PHP你...

阅读全文 »

php rename Operation not permitted 初步分析:mkdir的时候权限等级不明确在linux下未识别到或者不起作用,if (mkdir($path, 755)) 这种创建目录的方式貌似在服务器上可以创建成功,但是修改权限不够。所以在rename的时候 会报错:php rename Operation not permitted。推荐一下八进制写法:if (mkdir($path, 07...

阅读全文 »