Barley的博客
添加用户,首先用adduser命令添加一个普通用户,命令如下:
adduser barley //添加一个名为barley的用户
修改 /etc/sudoers 文件,找到root一行,在root下面添加一行,如下所示:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
barley ALL=(ALL) ALL
修改完毕,现在可以用tommy帐号登录,然后用命令 sudo su - ,即可获得root权限进行操作
阿里云Centos7 yum安装PHP7.2 LNMP环境配置 (centos7.6+nginx+MySQL5.7+PHP7.2) 编译php扩展 thinkphp5.0.24不加载extra文件夹下的扩展配置 Mac系统默认PHP版本切换为MAMP中php版本 TP5使用php7.1出现no input file specified问题 如何查看 linux 系统上的 php 位数是 32 位的还是 64 位的 令人困惑的strtotime mysql报错:cannot allocate memory for the buffer pool 重新整理开博