![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
在使用linux操作系统时记录一些操作和报错处理
沐水莲心
这个作者很懒,什么都没留下…
展开
-
在linux中更改PHP的环境变量(切换PHP版本)
在linux中切换PHP的版本在linux中我使用了宝塔面板安装了多个PHP版本,在终端中输入php -v查看当前PHP版本,发现不是自己想要的这个版本。于是乎就应该去更改PHP的默认版本号。更改过程如下:使用php -v查看版本号使用vim /etc/profile在后面加入以下语句#php环境变量export PATH=/www/server/php/72/bin:$PATH使用...原创 2020-05-02 09:44:29 · 1278 阅读 · 0 评论 -
解决linux报/var/run/yum.pid 已被锁定的问题
解决linux报/var/run/yum.pid已被锁定的问题使用Vmware刚安装完centos 7 系统后,想使用yum命令安装其他的软件,却不曾想报错了。报错如下:Repository base is listed more than once in the configurationRepository updates is listed more than once in the ...原创 2020-04-22 11:06:33 · 2203 阅读 · 0 评论 -
php安装swoole扩展(linux)
在Linux中php安装swoole扩展相关环境LAMP或LNMP开发环境L:指linuxA:指ApacheM:指MySQLP:指PHPN:指Nginx下载swoolewget -c https://github.com/swoole/swoole-src/archive/v2.0.6.tar.gz tar -zxvf v2.0.6.tar.gzcd swoole-src...原创 2020-04-13 15:12:14 · 174 阅读 · 0 评论 -
centos 7 开机启动网卡
centos 7 开机启动网卡今天一打开VMware Workstation 中的虚拟机,发现网卡没有开启,导致连不上网络。于是便记录下如何解决网卡的开启的问题。查看网卡是否开启ifconfig在截图中并未发现有其他的网卡,也就是网卡没有开启。注重:ifconfig是Linux中的命令,ipconfig是Windows下的命令开启网卡先查看ip信息ip addr此时...原创 2020-04-04 16:30:45 · 496 阅读 · 0 评论 -
linux切换用户时报错 this account is currently not available
linux切换用户时报错 this account is currently not available在安装完redis之后系统创建了一个名叫redis用户,但切换到这个用户的时候却报了错 this account is currently not available 。分析:从this account is currently not available 英文中可以了解到账号存在但不能使用...原创 2020-04-03 11:09:49 · 2866 阅读 · 0 评论