项目服务器使用的是阿里云centos6.8,默认的 curl 版本为7.19.您可以通过phpinfo()来查看版本或者shell
curl --version
首先修改yum更新源
vim /etc/yum.repos.d/city-fan-for-curl.repo
修改为以下内容:
[CityFanforCurl]
name=City Fan Repo
baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/
enabled=0
gpgcheck=0
直接更新curl
yum update curl --enablerepo=CityFanforCurl -y
重启php-frm
service php-fpm {start|stop|restart|reload|status} 【一】.钩子文件的设置和创建(1).打开hooks目录,可以看到有一个post-commit.tmpl文件,这是一个模板文件。复制一份,重命名为post-commit,将其用户组设为www,并设置为可执行。chown www:www post-commitchmod +x post-commit(2...
日志查看:git log版本切换:方式1:git reset --hard HEAD^ 倒退一个版本git reset --hard HEAD^^ 倒退两个版本方式2:(版本号的形式,建议版本号码补充完...
private const string fantizi = "高久峰是個程序員"; private const string jiantizi = "高久峰是个程序员...
1.文件redis-2.6.14.tar.gz的上传 /home/john/创建rdtar文件夹 上传redis-2.6.14.tar.gz至rdtar文件夹 2.解压文件 cd /home/john/rdtar tar &n...
首先在阿里云申请免费的证书,选择自动生成证书。然后就是nginx虚拟主机配置文件的修改。以下是我的配置文件(因为公司开发小程序,没有办法只能使用https)。您只需要关注带有ssl的配置选项,我增加了一个监听80和443的端口,同时增加了http跳转https的配置server &nbs...
1.设置key的value set name gao2.获取key的value get name3.删除key del key1 key2 ... Keyn4.修...