![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
文章平均质量分 91
YBaog
这个作者很懒,什么都没留下…
展开
-
Ubuntu -> PHP 如何切换版本
在 Ubuntu 中切换 PHP 版本命令如下 :sudo update-alternatives --config phpThere are 2 choices for the alternative php (providing /usr/bin/php). Selection Path Priority Status------------------------------------------------------------ 0原创 2021-04-09 18:05:04 · 2788 阅读 · 0 评论 -
Linux中查看apache是用那个httpd.conf
第一步:找到apache启动命令: [root@]# ps -ef|grep httpdroot 8810 1 0 Mar02 ? 00:00:12 /usr/sbin/httpd apache 21571 8810 0 17:38 ? 00:00:05 /usr/sbin/httpd apache 21771 8810 0原创 2017-03-07 00:35:00 · 1078 阅读 · 0 评论 -
Linux yum操作时出现 Error: xz compression not available
今天搭建阿里云服务器时,yum升级PHP版本的时候出现这个问题由于CentOS6的系统安装了epel-release-latest-7.noarch.rpm 导致在使用yum命令时出现Error: xz compression not available问题。解决方法:1.到http://ftp.riken.jp/Linux/fedora/epel/下载epel-release-lat原创 2017-04-20 19:13:12 · 548 阅读 · 0 评论 -
Linux MySQL修改密码时 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
今天安装mysql,然后输入mysql -u root -p,出现enter password,我直接点击回车,结果出现如果下错误:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)。解决方法:#1.停止mysql数据库[root@wdsx]# servic原创 2017-04-21 16:21:06 · 580 阅读 · 0 评论 -
Linux 里的 (#暗物质*) session 跨域问题
在做项目时候遇到个问题--session 跨域问题在同一台服务器里存在两个不同的域名,比如: ybaog.com 和 ybaog.cn ,在php.ini中只能配置一个,当去访问另一个域名的时候,session就会失效,所以每次用的时候都得去改配置,操作特别麻烦!麻!烦!Session主要分两部分:一个是Session数据,该数据默认情况下是存放在服务器的tmp文件下的,是以文件形原创 2017-11-30 12:53:36 · 326 阅读 · 0 评论 -
Linux apache(免费)安装 https (SSL)证书 ---阿里云
最近阿宝在捣鼓 Https ,把踩过的坑和成功经验分享一下,希望可以帮到你 !我使用的是阿里云免费版证书 阿里云->控制台->产品与服务-搜索->SSL证书->购买证书阿里云的购买证书入口:https://common-buy.aliyun.com/?spm=5176.2020520163.cas.1.28892b7aHzD6nV&commodityCo...原创 2018-04-16 12:27:34 · 1412 阅读 · 0 评论