我正在使用React编写顶部导航栏,并尝试使用react-i18next实现翻译。在您尝试动态设置{t('HOW DO I GET THIS DYNAMIC??'}的关键点之前,一切都会正常工作。
我循环遍历导航栏的项的数组,并为每个项获取动态值,并将其设置为translation.json中变量的值,但我无法将键设置为动态的,我尝试使用{item}但不起作用。
代码:
const { t } = useTranslation();
const menuItem = ['Pool', 'Mining', 'Leveraged
当我尝试启动apache时,会得到错误:
AH00543: httpd: bad user name apache
我还可以看到我的apache用户不存在于/etc/passwd中。
我还试图卸载apache,但随后收到警告:
warning: group apache does not exist - using root
SELinux也是禁用的。
有人知道怎么解决这个问题吗?
当我在终端中输入sudo命令时,它会显示以下错误:
sudo: /etc/sudoers is owned by uid 1000, should be 0
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
我该怎么解决这个问题?