我是java和Linux的新手。我必须用Java代码在Linux上创建一个本地文件。但它不允许我仅在以超级用户身份运行时才创建文件。在终端中,如果我运行"vi test.text",它不允许我写文件。因此,需要以超级用户"sudo vi test.text“的身份运行来创建文件。如何编写以超级用户身份运行的Java代码来创建文件?
谢谢!
screenshot of the installation progress 在centos 8机器上安装Magento 2.3.4,Apache2.4,PHP7.3.16,MySQL8.0.17,安装率为58%,已经在/etc/php.ini文件上尝试了max_execution_time=18000 & max_input_time=1800,不起作用 控制台日志底部的代码: Upgrading data...
[ERROR] PDOException: SQLSTATE[HY000]: General error: 1419 You do not have the SUPER
/build/Debug/GNU-Linux-x86/tests/TestFiles/f1: error while loading shared libraries: libboost_thread.so.1.49.0: cannot open shared object file: No such file or directory
它尝试在调试或测试会话中包含库或特定文件,但我继续得到它。