js的弱智错误1(调用方法少写了括号)

看了半天就是页面不显示预期的数据,检查结果是自己的方法写错了,少写了一个括号

before:

created(){
    this.fetchData()
    cityApi.getList.then(response=>{
      this.cityList=response.data
    })

after:

created(){
    this.fetchData()
    cityApi.getList().then(response=>{
      this.cityList=response.data
    })

 

您可以按照以下步骤在 CentOS 9 安装 DVWA 靶场: 1. 安装 LAMP 环境 DVWA 需要 LAMP(Linux + Apache + MySQL + PHP)环境才能正常工作。您可以使用以下命令安装 LAMP 环境: ``` sudo yum install -y httpd mariadb-server php php-mysqlnd ``` 安装完成后,启动 Apache 和 MySQL 服务: ``` sudo systemctl start httpd sudo systemctl start mariadb ``` 2. 下载 DVWA 使用以下命令下载 DVWA: ``` sudo yum install -y git sudo git clone https://github.com/ethicalhack3r/DVWA.git /var/www/html/dvwa ``` 3. 配置 DVWA 将 DVWA 的配置文件复制到 `/var/www/html/dvwa/config` 目录: ``` sudo cp /var/www/html/dvwa/config/config.inc.php.dist /var/www/html/dvwa/config/config.inc.php ``` 然后,编辑 `/var/www/html/dvwa/config/config.inc.php` 文件以适应您的需求。主要是设置 MySQL 数据库的用户名和密码。 4. 初始化 DVWA 数据库 使用以下命令初始化 DVWA 数据库: ``` sudo mysql -u root -p < /var/www/html/dvwa/config/createdb.sql ``` 然后,使用以下命令设置 DVWA 数据库的用户名和密码: ``` sudo mysql -u root -p -e "GRANT ALL ON dvwa.* TO 'dvwa'@'localhost' IDENTIFIED BY 'password';" ``` 5. 启用 PHP 安全模式 DVWA 需要启用 PHP 安全模式才能正常工作。使用以下命令启用 PHP 安全模式: ``` sudo sed -i 's/^;disable_functions =/disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,system,exec,shell_exec,passthru/g' /etc/php.ini ``` 6. 访问 DVWA 在浏览器输入 `http://<服务器 IP 地址>/dvwa`,即可访问 DVWA 的 Web 界面。 希望这些信息可以帮助您安装和配置 DVWA 靶场。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值