当前位置:网站首页>Following the previous SYSTEMd pit
Following the previous SYSTEMd pit
2022-06-24 16:57:00 【Maochenchen】
stay systemd After setting the startup script , The script can run normally , What I'm running is uwsgi+django, However, it is unfortunate to find that a certain software cannot be used normally during operation , Directly in command line start-up uwsgi There is no problem with the service , So it is suspected that it is the problem of environmental variables .
stay systemd Of service Add... To the file PATH
[Service] Environment="PATH=/usr/local/texlive/2019/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
Um. , You can see that the software I can't call normally is texlive...
What we need to pay attention to here is PATH You need to write the complete address , If you add Environment="PATH=/usr/local/texlive/2019/bin/x86_64-linux:$PATH" I can't recognize it ,systemd Not recognized $PATH What is it? , If you can, you don't need to add this line ...
Then reload systemd To configure , Restart the service again ok 了
sudo systemctl daemon-reload sudo systemctl restart test.service
边栏推荐
- Modern finite element analysis can easily achieve accurate results
- What is zero trust? Three classes will show you how to understand him!
- Zblog system realizes the tutorial of the number of articles published on the same day when the foreground calls
- IBM:以现代化架构支撑AI与多云时代的企业数字化重塑
- [log service CLS] Tencent cloud game battle engine mgobe accesses CLS
- Kubernetes 1.20.5 setting up Sentinel
- MySQL learning -- table structure of SQL test questions
- How Tencent cloud es achieves cross cluster data copy & lt through reindex; Lower & gt;
- What is the difference between get and post? After reading it, you won't be confused and forced, and you won't have to fight with your friends anymore
- How to get the response body content in gin?
猜你喜欢

A survey on dynamic neural networks for natural language processing, University of California

MySQL learning -- table structure of SQL test questions

A survey of training on graphs: taxonomy, methods, and Applications
![[leetcode108] convert an ordered array into a binary search tree (medium order traversal)](/img/e1/0fac59a531040d74fd7531e2840eb5.jpg)
[leetcode108] convert an ordered array into a binary search tree (medium order traversal)

A survey on model compression for natural language processing (NLP model compression overview)

Daily algorithm & interview questions, 28 days of special training in large factories - the 15th day (string)
随机推荐
Scuffle on China's low code development platform -- make it clear that low code
zblog系统实现前台调用当天发布文章数量的教程
The mystery of redis data migration capacity
How to use the national standard streaming media server to view the video stream of the surveillance camera? How to correctly use UDP and TCP protocols?
The problem is as big as the middle stage
Principle analysis of robot hardware in the loop system
Swift array map/flatmap/compactmap/filter/reduce/chaining Usage Summary
Go path customized project path package dependency
Collect tke logs through daemonset CRD
Let ups "Impressionist users" re understand reliability
Mathematics in machine learning -- point estimation (IV): maximum posteriori probability (map)
What is a reptile
Try catch finally implementation mechanism
Experience and suggestions on cloud development database
zblog判断某个插件是否安装启用的内置函数代码
What does the router pin mean?
After the collective breakthrough, where is the next step of China's public cloud?
跟着Vam一起学习Typescript(第一期)
Saying "Dharma" Today: the little "secret" of paramter and localparam
Audio knowledge (I)