更新时间: 试题数量: 购买人数: 提供作者:

有效期: 个月

章节介绍: 共有个章节

收藏
搜索
题库预览
server_name 192.168.152.100; //重新加载配置文件 [root@web01 conf]< /usr/local/nginx/sbin/nginx -s (9)reload //获取网站内容 [root@web01 conf]< (10)curl 192.168.152.100 以下操作是手动安装mariadb,请根据提示补充完整以下命令。 //安装数据库 [root@web01 ~]< (1) install -y mariadb mariadb-server //配置数据库 [root@web01 ~]< vim /etc/my.cnf [root@web01 ~]< systemctl start mariadb //设置root用户密码为123456 [root@web01 ~]< (2) -u root password '123456' //登录数据库并设置远程登录权限 [root@web01 ~]< mysql -uroot -p (3) //查看数据库 MariaDB [(none)]> show (4) ; MariaDB [(none)]> (5) all privileges on *.* to root@"%" identified by '123456' with grant option; //如果是单机商城,则远程登录用户可以不创建 MariaDB [(none)]> flush privileges; //创建数据库 MariaDB [(none)]> create database stu_db; Query OK, 1 row affected (0.00 sec) //切换数据库stu(  )MariaDB [(none)]> (6) stu_db; (2) http://nginx.org/download/nginx-1.18.0.tar.gz (3) -xzvf nginx-1.18.0.tar.gz -C /opt/ (4) /opt/ (5) -s nginx-1.18.0 nginx (6) (7) -i 's/server_name localhost/server_name 192.168.152.100/g' /usr/local/nginx/conf/nginx.conf (9) 192.168.152.100 (10) (1) centos:centos7 (2) mysql-new.sql /opt/ (5) rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm (8) 3306 6379 8080 80 (9) LC_ALL en_US.UTF-8 (10) ["sh","-c","/opt/start.sh"]