![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
「已注销」
你不甘堕落 却不思进取!
展开
-
修改linux上ssh端口号
1 , 首先我们远程进去 linux2 , ssh的配置文件是在/etc/ssh/sshd_config这个文件里的3 , 打开文件找到 #Port 22 把前面的#删除,然后把 22改为其它的端口4 , 重启 ssh 就行了翻译 2016-11-29 16:01:03 · 213 阅读 · 0 评论 -
yum php70w-pdo 安装后没有驱动里没有mysql
yum install php70w.x86_64 php70w-bcmath.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-dba.x86_64 php70w-devel.x86_64 php70w-embedded.x86_64 php70w-enchant.x86_64 php70w-fpm.x86_64 php70w-gd.x原创 2017-11-21 20:42:44 · 1485 阅读 · 0 评论 -
nginx重启 错误解释
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)服务没有启动 先启动原创 2017-11-20 17:45:22 · 384 阅读 · 0 评论 -
php7安装redis 扩展
1.wget http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm yum install redis php-redis 在CentOS下有时候用rpm安装软件是会出现下面则中错误 1、安装转载 2017-11-19 15:48:51 · 385 阅读 · 0 评论 -
使用PHPZIE 出错时
输入phpize,错误提示如下:Can't find PHP headers in /usr/include/phpThe php-devel package is required for use of this command.需要先安装php-pear:yum install php-pear然后再安装php-devel:yum install php54w-原创 2017-07-24 14:47:18 · 278 阅读 · 0 评论 -
阿里云linux下 升级PHP版本
首先更新系统软件$ yum update在centos7通过yum安装PHP7,首先在终端运行:rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm如果提示错误:error: Failed dependencies:epel-release >= 7 is needed by webt原创 2017-07-08 20:24:52 · 4714 阅读 · 0 评论 -
Centos7.0 下搭建 Nginx
1.安装nginxyum install yum-priorities -y wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm rpm -ivh nginx-release-centos-7-0.el7.ngx.noarch.rpm yum原创 2017-05-10 13:43:51 · 1556 阅读 · 0 评论 -
Nginx下的项目 http转https
前几天在研究微信小程序,简直是坑啊,不能用http去调取接口数据,再加上公司的IOS也要变成https去访问1 : 服务器安装SSL证书(我这个是阿里云的,不管是谁的都差不多) 阿里云控制台 域名 --> 证书服务 https://yundun.console.aliyun.com/?p=cas#/cas/home右上角 购买证书(1) 公司 : 建议买和服务器项目配置证书转载 2017-05-10 10:47:47 · 467 阅读 · 0 评论 -
linux 安装redis
http://www.centoscn.com/image-text/config/2016/0525/7252.html翻译 2016-12-12 11:55:06 · 199 阅读 · 0 评论 -
用yum 安装的php版本升级
找了N多种方法 ,只有这一个成功了!!安装php5.6版本以后不再需要安装Zend Guard,而是用yum命令安装php-opcache及php-pecl-apcu就可以有效的提高php执行速度。1. 配置yum源事先确认yum源的链接是不是有效的。# rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/7/x86_64/翻译 2017-05-09 16:01:27 · 2146 阅读 · 0 评论 -
Yii 框架路径美化Url
1 首先要在yii框架里加上配置文件 main.php 'urlManager' => [ 'class' => 'yii\web\UrlManager', 'enablePrettyUrl' => true, 'showScriptName' => false, 'ena翻译 2017-03-24 09:07:51 · 265 阅读 · 0 评论 -
OpenSSL生成公钥私钥
用 OpenSSL, Linux 上自带,常用命令如下:-- 生成 RSA 私钥(传统格式的)openssl genrsa -out rsa_private_key.pem 1024-- 将传统格式的私钥转换成 PKCS#8 格式的(JAVA需要使用的私钥需要经过PKCS#8编码,PHP程序不需要,可以直接略过)openssl pkcs8 -topk8 -infor翻译 2017-12-11 11:58:10 · 252 阅读 · 0 评论