部署lamp

配置yum源

阿里源地址:https://developer.aliyun.com/mirror/

[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls
CentOS-Stream-AppStream.repo  CentOS-Stream-HighAvailability.repo  CentOS-Stream-RealTime.repo
CentOS-Stream-BaseOS.repo     CentOS-Stream-Media.repo             CentOS-Stream-ResilientStorage.repo
CentOS-Stream-Debuginfo.repo  CentOS-Stream-NFV.repo               CentOS-Stream-Sources.repo
CentOS-Stream-Extras.repo     CentOS-Stream-PowerTools.repo
[root@localhost yum.repos.d]# rm -rf *
[root@localhost yum.repos.d]# ls
[root@localhost yum.repos.d]# curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
[root@localhost yum.repos.d]# sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo
[root@localhost yum.repos.d]# dnf clean all
[root@localhost yum.repos.d]# yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
[root@localhost yum.repos.d]# sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel*
[root@localhost yum.repos.d]# sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*
[root@localhost yum.repos.d]# ls
CentOS-Base.repo  epel-modular.repo  epel.repo  epel-testing-modular.repo  epel-testing.repo
[root@localhost yum.repos.d]# dnf clean all
[root@localhost ~]# yum makecache   //建立本地缓存

1. 编译安装httpd

准备工作

[root@localhost ~]# dnf -y install wget vim
[root@localhost ~]# yum -y install openssl-devel pcre-devel expat-devel libtool  make   //安装依赖包

httpd依赖于apr,apr-util,httpd三个包
包下载位置:apache.org
下载依赖的三个包

[root@localhost ~]# wget https://downloads.apache.org/apr/apr-1.7.0.tar.gz
[root@localhost ~]# wget https://downloads.apache.org/apr/apr-util-1.6.1.tar.gz
[root@localhost ~]# wget https://downloads.apache.org/httpd/httpd-2.4.53.tar.gz

安装开发环境

[root@localhost ~]# yum groups mark install "Development Tools"   //安装开发工具包
[root@localhost ~]# useradd -r -M -s /sbin/nologin apache    //创建系统用户
[root@localhost ~]# id apache
uid=995(apache) gid=992(apache) groups=992(apache)


解压

[root@localhost ~]# ls
anaconda-ks.cfg  apr-1.7.0.tar.gz  apr-util-1.6.1.tar.gz  httpd-2.4.53.tar.gz
[root@localhost ~]# tar xf apr-1.7.0.tar.gz 
[root@localhost ~]# tar xf apr-util-1.6.1.tar.gz 
[root@localhost ~]# tar xf httpd-2.4.53.tar.gz 
[root@localhost ~]# ls
anaconda-ks.cfg  apr-1.7.0  apr-1.7.0.tar.gz  apr-util-1.6.1  apr-util-1.6.1.tar.gz  httpd-2.4.53  httpd-2.4.53.tar.gz

安装apr

[root@localhost ~]# cd apr-1.7.0
[root@localhost apr-1.7.0]# vim configure
#   $RM "$cfgfile"    //注释掉或者删除这一行
[root@localhost apr-1.7.0]# ./configure --prefix=/usr/local/apr
[root@localhost apr-1.7.0]# make
[root@localhost apr-1.7.0]# make install

安装apr-util

[root@localhost ~]# cd apr-util-1.6.1
[root@localhost apr-util-1.6.1]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
[root@localhost apr-util-1.6.1]# make
[root@localhost apr-util-1.6.1]# make install

安装httpd

root@localhost ~]# cd httpd-2.4.53
[root@localhost httpd-2.4.53]# 
 ./configure --prefix=/usr/local/apache \
--enable-so \
--enable-ssl \
--enable-cgi \
--enable-rewrite \
--with-zlib \
--with-pcre \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util/ \
--enable-modules=most \
--enable-mpms-shared=all \
--with-mpm=prefork
[root@localhost httpd-2.4.53]# make
[root@localhost httpd-2.4.53]# make install

设置环境变量

[root@localhost ~]# ls /usr/local     //安装apache源码包的位置
apache  apr-util  etc    include  lib64    sbin   src
apr     bin       games  lib      libexec  share
[root@localhost ~]# cd /usr/local/apache/ 
[root@localhost apache]# ls  //htdocs源码安装网站放这里
bin    cgi-bin  error   icons    logs  manual
build  conf     htdocs  include  man   modules
[root@localhost ~]# echo 'export PATH=/usr/local/apache/bin:$PATH' > /etc/profile.d/apache.sh      //配置环境变量
[root@localhost ~]# source /etc/profile.d/apache.sh 
[root@localhost ~]# which httpd
/usr/local/apache/bin/httpd
[root@localhost ~]# which apachectl
/usr/local/apache/bin/apachectl

include头文件,拥有头文件需要做映射关系

[root@localhost ~]# ln -s /usr/local/apache/include /usr/include/apache   //软连接

配置man文档

[root@localhost ~]# vim /etc/man_db.conf 
MANDATORY_MANPATH                       /usr/local/apache/man   
//添加一行内容

关闭防火墙

[root@localhost ~]# systemctl disable --now firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. 

关闭selinux

[root@localhost ~]# setenforce 0    //当前生效,当前关闭
[root@localhost ~]# getenforce
Permissive
[root@localhost ~]# vim /etc/selinux/config    //重启生效
SELINUX=disabled   //修改

开启80端口号

[root@localhost ~]# ss -antl
State  Recv-Q Send-Q Local Address:Port Peer Address:Port Process                                                   
LISTEN 0      128          0.0.0.0:22        0.0.0.0:*                                                              
LISTEN 0      128             [::]:22           [::]:*                                                              
[root@localhost ~]# which apachectl
/usr/local/apache/bin/apachectl
[root@localhost ~]# apachectl start    //开启apachectl
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message   //警示信息
[root@localhost ~]# ss -antl
State  Recv-Q Send-Q Local Address:Port Peer Address:Port Process                                                   
LISTEN 0      128          0.0.0.0:80        0.0.0.0:*                                                              
LISTEN 0      128          0.0.0.0:22        0.0.0.0:*                                                              
LISTEN 0      128             [::]:22           [::]:*                                    

在这里插入图片描述

用systemctl设置开机自启
适用于所有用源码安装的服务

[root@localhost ~]# cd /usr/lib/systemd/system
[root@localhost system]# ls sshd.service
sshd.service
[root@localhost system]# cp sshd.service httpd.service
[root@localhost system]# vim httpd.service
[root@localhost system]# cat httpd.service 
[Unit]
Description=httpd server daemon
After=network.target sshd-keygen.target

[Service]
Type=forking
ExecStart=/usr/local/apache/bin/apachectl start
ExecStop=/usr/local/apache/bin/apachectl stop
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

[root@localhost system]# systemctl daemon-reload    //重新加载
[root@localhost system]# cd
[root@localhost ~]# ss -antl
State  Recv-Q Send-Q Local Address:Port Peer Address:Port Process                                                   
LISTEN 0      128          0.0.0.0:22        0.0.0.0:*                                                              
LISTEN 0      128             [::]:22           [::]:*                                                              
[root@localhost ~]# systemctl status httpd    //查看状态
● httpd.service - httpd server daemon
   Loaded: loaded (/usr/lib/systemd/system/httpd.service;>
   Active: inactive (dead) 
[root@localhost ~]# systemctl start httpd   //启动httpd服务
[root@localhost ~]# ss -antl
State  Recv-Q Send-Q Local Address:Port Peer Address:Port Process                                                   
LISTEN 0      128          0.0.0.0:80        0.0.0.0:*                                                              
LISTEN 0      128          0.0.0.0:22        0.0.0.0:*                                                              
LISTEN 0      128             [::]:22           [::]:*                                                              
[root@localhost ~]# systemctl status httpd
● httpd.service - httpd server daemon
   Loaded: loaded (/usr/lib/systemd/system/httpd.service;>
   Active: active (running) since Sun 2022-04-22 22:22:27>
  Process: 86066 ExecStart=/usr/local/apache/bin/apachect>
 Main PID: 86069 (httpd)
    Tasks: 6 (limit: 11217)
   Memory: 4.2M
   CGroup: /system.slice/httpd.service
           ├─86069 /usr/local/apache/bin/httpd -k start
           ├─86070 /usr/local/apache/bin/httpd -k start
           ├─86071 /usr/local/apache/bin/httpd -k start
           ├─86072 /usr/local/apache/bin/httpd -k start
           ├─86073 /usr/local/apache/bin/httpd -k start
           └─86074 /usr/local/apache/bin/httpd -k start

Apr 21 22:22:27 localhost.localdomain systemd[1]: Startin>
Apr 21 22:22:27 localhost.localdomain systemd[1]: Started>
[root@localhost ~]# systemctl enable httpd   //设置开机自启
[root@localhost ~]# systemctl status httpd
[root@localhost ~]#  systemctl status httpd
● httpd.service - httpd server daemon
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2022-04-21 22:28:16 CST; 48s ago
 Main PID: 49145 (httpd)
    Tasks: 6 (limit: 11217)
   Memory: 4.2M
   CGroup: /system.slice/httpd.service
           ├─49145 /usr/local/apache/bin/httpd -k start
           ├─49146 /usr/local/apache/bin/httpd -k start
           ├─49147 /usr/local/apache/bin/httpd -k start
           ├─49148 /usr/local/apache/bin/httpd -k start
           ├─49149 /usr/local/apache/bin/httpd -k start
           └─49150 /usr/local/apache/bin/httpd -k start

Apr 21 22:28:16 localhost.localdomain systemd[1]: Starting httpd server daemon...
Apr 21 22:28:16 localhost.localdomain apachectl[49142]: AH00558: httpd: Could not reliably determine the server's f>
Apr 21 22:28:16 localhost.localdomain systemd[1]: Started httpd server daemo

2.安装mysql

配置mysql的yum源

[root@localhost ~]# wget http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm   //下载
[root@localhost ~]# rpm -ivh mysql57-community-release-el7-10.noarch.rpm //安装
[root@localhost ~]# yum clean all   //清理缓存
[root@localhost ~]# yum makecache   //建立本地缓存方便下载

下载mysql安装包
安装包位置:http://repo.mysql.com/

[root@localhost ~]# wget http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-client-5.7.37-1.el7.x86_64.rpm
[root@localhost ~]# wget http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-common-5.7.37-1.el7.x86_64.rpm
[root@localhost ~]# wget http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-devel-5.7.37-1.el7.x86_64.rpm
[root@localhost ~]# wget http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-libs-5.7.37-1.el7.x86_64.rpm
[root@localhost ~]# wget http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.37-1.el7.x86_64.rpm

安装mysql包

[root@localhost ~]# rm -f mysql57-community-release-el7-10.noarch.rpm     //删除多余的包
[root@localhost ~]# ls        //查看目录下有无多余的rpm包
anaconda-ks.cfg                                
mysql-community-devel-5.7.37-1.el7.x86_64.rpm
mysql-community-libs-5.7.37-1.el7.x86_64.rpm
mysql-community-client-5.7.37-1.el7.x86_64.rpm  
mysql-community-server-5.7.37-1.el7.x86_64.rpm
mysql-community-common-5.7.37-1.el7.x86_64.rpm
[root@localhost ~]# dnf -y install *.rpm    //安装此目录下的所有rpm包
[root@localhost ~]# rpm -qa|grep mysql     //检查是否安装成功
mysql57-community-release-el7-10.noarch
mysql-community-server-5.7.37-1.el7.x86_64
mysql-community-libs-5.7.37-1.el7.x86_64
mysql-community-devel-5.7.37-1.el7.x86_64
mysql-community-client-5.7.37-1.el7.x86_64
mysql-community-common-5.7.37-1.el7.x86_64

启动mysql并设置开机自动启动

[root@localhost ~]# systemctl status mysqld      //查看状态
● mysqld.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
[root@localhost ~]# systemctl enable --now mysqld      //设置为开机自启
[root@localhost ~]# systemctl status mysqld
● mysqld.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2022-04-21 22:41:26 CST; 3s ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
  Process: 49965 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=ex>
  Process: 49915 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
 Main PID: 49967 (mysqld)
    Tasks: 27 (limit: 11217)
   Memory: 281.0M
   CGroup: /system.slice/mysqld.service
           └─49967 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid

Apr 21 22:41:20 localhost.localdomain systemd[1]: Starting MySQL Server...
Apr 21 22:41:26 localhost.localdomain systemd[1]: Started MySQL Server.
[root@localhost ~]#  ss -antl     //MySQL默认是3306端口号,查看3306端口号是否开启
State        Recv-Q       Send-Q             Local Address:Port               Peer Address:Port       Process       
LISTEN       0            128                      0.0.0.0:80                      0.0.0.0:*                        
LISTEN       0            128                      0.0.0.0:22                      0.0.0.0:*                        
LISTEN       0            80                             *:3306                          *:*                        
LISTEN       0            128                         [::]:22                         [::]:*    

登录mysql

[root@localhost ~]# grep 'password' /var/log/mysqld.log       //在日志文件中找出临时密码
2022-04-21T14:41:24.151045Z 1 [Note] A temporary password is generated for root@localhost: kP:c1L?nUY6L
[root@localhost ~]# mysql -uroot -p'kP:c1L?nUY6L'      //用获取到的临时密码登录mysql    
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.37

Copyright (c) 2000, 2022, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>         //看到有这样的标识符则表示成功登录了

设置密码(密码要符合复杂性要求,要有大小写字母,数字,特殊字符)

mysql> set password = password('Runtime123!');    //第一次登录后要立即设置密码()用来加密的
Query OK, 0 rows affected, 1 warning (0.00 sec)
//mysql语法里面;表示结束

mysql> quit   //退出
Bye

[root@localhost ~]# mysql -uroot -p'Runtime123!'     //用新密码登录查看是否设置成功
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.37 MySQL Community Server (GPL)

Copyright (c) 2000, 2022, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> quit    //成功
Bye

//为避免mysql自动升级,这里需要卸载最开始安装的yum源
[root@localhost ~]# rpm -qa |grep mysql
mysql-community-common-5.7.37-1.el7.x86_64
mysql-community-client-5.7.37-1.el7.x86_64
mysql-community-libs-5.7.37-1.el7.x86_64
mysql-community-server-5.7.37-1.el7.x86_64
mysql57-community-release-el7-10.noarch
mysql-community-devel-5.7.37-1.el7.x86_64
[root@localhost ~]# rpm -e mysql57-community-release

3.安装php

安装依赖包

#安装依赖包
[root@localhost ~]# yum -y install libxml2 libxml2-devel openssl openssl-devel bzip2 bzip2-devel libcurl libcurl-devel libicu-devel libjpeg libjpeg-devel libpng libpng-devel openldap-devel  pcre-devel freetype freetype-devel gmp gmp-devel libmcrypt libmcrypt-devel readline readline-devel libxslt libxslt-devel mhash mhash-devel sqlite-devel libzip-devel

编译php
下载地址:pkgs.org php.net

[root@localhost ~]# wget https://github.com/kkos/oniguruma/archive/v6.9.4.tar.gz -O oniguruma-6.9.4.tar.gz     //下载此包 后续编译php需要
[root@localhost ~]# tar -zxf oniguruma-6.9.4.tar.gz  //解压
[root@localhost ~]# cd oniguruma-6.9.4 
[root@localhost ~]# ./autogen.sh && ./configure --prefix=/usr  //设置存放位置  
[root@localhost ~]# make 
[root@localhost ~]# make install

[root@localhost ~]# wget https://www.php.net/distributions/php-7.4.29.tar.xz //下载php的源码包
[root@localhost ~]# tar xf php-7.4.29.tar.xz   //解压
[root@localhost ~]# cd php-7.4.29/
./configure --prefix=/usr/local/php7  \
--with-config-file-path=/etc \
--enable-fpm \
--enable-inline-optimization \
--disable-debug \
--disable-rpath \
--enable-shared \
--enable-soap \
--with-openssl \
--enable-bcmath \
--with-iconv \
--with-bz2 \
--enable-calendar \
--with-curl \
--enable-exif  \
--enable-ftp \
--enable-gd \
--with-jpeg \
--with-zlib-dir \
--with-freetype \
--with-gettext \
--enable-json \
--enable-mbstring \
--enable-pdo \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-readline \
--enable-shmop \
--enable-simplexml \
--enable-sockets \
--with-zip \
--enable-mysqlnd-compression-support \
--with-pear \
--enable-pcntl \
--enable-posix

[root@localhost ~]# make
[root@localhost ~]# make install   

配置php
创建环境变量

[root@localhost ~]# echo 'export PATH=/usr/local/php7/bin:$PATH' > /etc/profile.d/php7.sh  //设置环境变量
[root@localhost ~]# source /etc/profile.d/php7.sh    //读取 让其生效
[root@localhost ~]# which php
/usr/local/php7/bin/php

配置php-fpm

[root@localhost ~]# cd php-7.4.29/
[root@localhost php-7.4.29]# cp php.ini-production /etc/php.ini  //将生产环境文件 复制到etc下 
[root@localhost php-7.4.29]# cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
[root@localhost fpm]# chmod +x /etc/rc.d/init.d/php-fpm  //此文件需要执行权限所以复制过去要看是否有执行(x)权限
[root@localhost php-7.4.29# cp /usr/local/php7/etc/php-fpm.conf.default /usr/local/php7/etc/php-fpm.conf   //将php-fpm.conf.default 复制一份名为php-fpm.conf
[root@localhost php-7.4.29]# cp /usr/local/php7/etc/php-fpm.d/www.conf.default /usr/local/php7/etc/php-fpm.d/www.conf    //将www.conf.default 复制一份名为www.conf

开启服务检查端口
创建测试文件

[root@localhost ~]# cd /usr/local/apache/htdocs/   //进入网页目录
[root@localhost htdocs]# mkdir test.com   //创建存放网页的目录
[root@localhost htdocs]# chown -R apache.apache /usr/local/apache/   //设置apache下的文件目录属组属主都为apache
[root@localhost htdocs]# cd test.com/
[root@localhost test.com]# vim index.php   //创建一个index.php的测试文件
[root@localhost test.com]# cat index.php 
<?php
   phpinfo();
?>
[root@localhost test.com]# cd ..
[root@localhost htdocs]# ll    //查看属主
total 4
-rw-r--r--. 1 apache apache 45 Jun 12  2007 index.html
drwxr-xr-x. 2 apache apache 23 Apr 21 23:54 test.com

启动代理模块
在apache httpd 2.4以后已经专门有一个模块针对FastCGI的实现,此模块为mod_proxy_fcgi.so,它其实是作为mod_proxy.so模块的扩展,因此,这两个模块都要加载,编辑httpd.conf文件,取消以下两行内容的注释:

[root@localhost ~]# cd /usr/local/apache/conf/
[root@localhost conf]# vim httpd.conf 
LoadModule proxy_module modules/mod_proxy.so   //将这两行注释取消 启动这两个模块
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so

配置虚拟主机

[root@localhost conf]# vim httpd.conf
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php  //添加这两行   //让apache支持php的页面
AddType application/x-httpd-php-source .phps //添加这两行



#搜索index.html 
[root@localhost conf]# vim httpd.conf  
<IfModule dir_module>
    DirectoryIndex index.php index.html   //在其前面添加index.php 让网站能够访问到php类型
</IfModule>


#在文件最后添加
<VirtualHost *:80>
    DocumentRoot "/usr/local/apache/htdocs/test.com"   //网站位置
    ServerName test.example.com  //域名
    ProxyRequests Off
    ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/usr/local/apache/htdocs/test.com/$1  //网站位置
    <Directory "/usr/local/apache/htdocs/test.com">  //网站位置
        Options none
        AllowOverride none
        Require all granted
    </Directory>
</VirtualHost>

域名是无法直接访问的,要把真机上的c:\windows\system32\drivers\etc\hosts文件拖到桌面上面修改,然后拖回去
在这里插入图片描述
重启服务

[root@localhost ~]# service php-fpm start
Starting php-fpm  done
[root@localhost ~]# ss -antl
State    Recv-Q   Send-Q       Local Address:Port             Peer Address:Port         Process         
LISTEN   0        128              127.0.0.1:9000                  0.0.0.0:*                            
LISTEN   0        128                0.0.0.0:80                    0.0.0.0:*                            
LISTEN   0        128                0.0.0.0:22                    0.0.0.0:*                            
LISTEN   0        80                       *:3306                        *:*                            
LISTEN   0        128                   [::]:22                       [::]:*                            

在这里插入图片描述
域名访问
在这里插入图片描述

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值