![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
pangxiaofei94
分享一些技术知识和开发遇见得坑,收藏技术大牛的文章。
展开
-
linx下的ssh配置
首先服务器默认远程登陆ssh,ssh默认端口是22,默认用户root,这是大家都知道的。 为了以防黑客用默认的root用户攻击你的服务器,我们需要简单配置一下文件。 配置文件路径 /etc/ssh/sshd.conf 用vim命令打开,添加以下配置 Port 12366 #链接默认端口,必须要改,自定义端口 PermitRootLogin no #root用户黑客原创 2017-09-05 17:40:34 · 255 阅读 · 0 评论 -
linux下php支持redis
在linux下安装了lnmp,redis扩展也独立完成安装了,但是此时php还不能使用redis <?php $redis = new Redis(); $redis->connect('127.0.0.1', 6379); 用php运行后报错: Fatal error: Class ‘Redis’ not found in /home/huyi/www.php.com/s...原创 2017-12-13 20:36:25 · 630 阅读 · 0 评论