当前位置:网站首页>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
边栏推荐
- Clickhouse high performance column storage core principle
- Is CICC securities reliable? Is it legal? Is it safe to open a stock account?
- Solution to the problem that kibana's map cannot render longitude and latitude coordinate data
- [play with Tencent cloud] & lt; trtc-room> Applet component usage
- Introduction to website development for zero foundation Xiaobai
- API documents are simple and beautiful. It only needs three steps to open
- Recent progress of ffmpeg go
- Collect tke logs through daemonset CRD
- [tke] nodelocaldnschache is used in IPVS forwarding mode
- AI video structured intelligent security platform easycvr intelligent security monitoring scheme for protecting community residents
猜你喜欢

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

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

Daily algorithm & interview questions, 28 days of special training in large factories - the 15th day (string)

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)
随机推荐
Tencent blue whale Zhiyun community version v6.0.3 was officially released together with the container management platform!
liver failure! My friend made a programming navigation website!
Data acquisition and transmission instrument reservoir dam safety monitoring
[playing with Tencent cloud] a solution to the impassability of cross-border access to foreign websites using Tencent cloud CVM
[idea] dynamic planning (DP)
One article combs multi task learning (mmoe/ple/dupn/essm, etc.)
重新定义存储架构,华为用了不止5颗“芯”
How to save data to the greatest extent after deleting LV by misoperation under AIX?
Go path customized project path package dependency
05. Tencent cloud IOT device side learning -- mqtt protocol client implementation
Pagoda activities, team members can enjoy a lightweight server 1 core 2g5m 28 yuan for two years
Contributed code to famous projects for the first time, a little nervous
Clickhouse high performance column storage core principle
How to access tke cluster API interface with certificate or token
TCB series learning articles - using redis extension in cloud functions
Let ups "Impressionist users" re understand reliability
Game business DDoS attack and defense confrontation case sharing
[web] what happens after entering the URL from the address bar?
C4D learning notes
How to perform concurrent stress testing on RTSP video streams distributed by audio and video streaming servers?