After entering this text ( sudo tail /var/log/suricata/suricata.log), an error appeared, how to fix it

The configuration file is still missing and please use quote and code tags to make the post easier to read.

As I said it uses eth0 by default but you need to set the config to the interface you want to listen on and this depends on your setup. Please read through our documentation at Suricata User Guide — Suricata 8.0.0-dev documentation