麒麟系统命令行如何切换root用户
安装好系统后打开命令行窗口使用的是自己创建的用户而不是root用户,权限不足,使用su命令输入自己创建的用户的密码不对,我们需要使用命令sudo -i命令便可切换到root用户
version: ‘3’
services:
nginx:
image: nginx:latest
ports:
- 80:80
volumes:
- ./www:/www
- ./nginx/conf.d:/etc/nginx/conf.d
links:
- php
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- ./mysql/data:/var/lib/mysql
php:
image: php:7.2-fpm
volumes:
- ./www:/www
本作品采用《CC 协议》,转载必须注明作者和本文链接