Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
做开发时候一些文件要在root目录创建,总是权限不够,有....
Experiences and Insight
981
views ·
10
replies ·
To
floor
Go
itqinbo
deepin
2020-04-15 04:47
Author
类似这样,总不能每次都换目录。。
Reply
Like 0
Favorite
View the author
All Replies
neko
deepin
Ecological co-builder
Q&A Team
2020-04-15 05:47
#1
su root切换用户吧
Reply
Like 0
View the author
neko
deepin
Ecological co-builder
Q&A Team
2020-04-15 05:50
#2
https://bbs.deepin.org/post/191456
su root切换用户吧
必须要在root目录创建,也是够奇葩的。
Reply
Like 0
View the author
SamLukeYes
deepin
2020-04-15 06:17
#3
fakeroot? docker?
Reply
Like 0
View the author
Feng Yu
deepin
2020-04-15 06:22
#4
抱歉,看到用这个目录,做这种开发的,我真没笑
Reply
Like 0
View the author
Comments
399913628
2020-04-15 23:12
求点评,意思是用了绝对目录,而不是相对目录吗?
mhtan
deepin
2020-04-15 16:42
#5
源文件夹放到用户文件夹里面 ,
例如 /home/xxxx/shop,
再做个软链到root下就行了,
例如 ln -s /home/xxxx/shop /root/shop
(xxxx是你当前的用户)
Reply
Like 0
View the author
nukiyoam
deepin
2020-04-15 17:11
#6
修改日志输出目录,或者创建个普通账户来启动应用,将应用放到 /home/对应用户名 目录下。。。。。。。。。。。。。。。。。。。。。。。。。
Reply
Like 0
View the author
xtxbyj
deepin
2020-04-15 17:26
#7
看来时小白程序员呀,毕业设计项目
Reply
Like 0
View the author
kellen9416
deepin
2020-04-15 19:56
#8
你可以在home下建项目,或者你直接在/opt 建个文件夹,专门来做开发,并且把这个文件夹的权限开放给当前用户就行了 755 一般足够了
Reply
Like 0
View the author
jiangtao69039
deepin
2020-04-15 23:02
#9
用的logback还是log4j? 配置文件里日志输出目录改成 ./logs 运行项目后 ,你项目里就会出现个logs文件夹了. logback的话简单点, resource下放一个logback-spring-dev.xml,然后application.yml配置下logging.config=logback-spring-dev.xml 就好了, logback-spring-dev.xml里面配置好日志输出路径
Reply
Like 0
View the author
134******40
deepin
2020-04-16 05:02
#10
你是java开发吧,java开发不需要root权限啊,除非有特殊需求。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
WiFi Drivers
Popular Events
More
类似这样,总不能每次都换目录。。