当前位置:网站首页>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
边栏推荐
- Automatically refresh CDN cache in real time based on cos log
- Use Google search like a professional
- Handling of communication failure between kuberbetes pod
- National standard gb28181 protocol video platform easygbs alarm reporting function adds video alarm reporting and video recording
- Robot toolbox matlab robotics toolbox
- What is a server
- Implement typescript runtime type checking
- Tencent released "warehouse express" and issued "ID card" for each commodity!
- A solution for building live video based on open source real-time audio and video webrtc architecture
- Teach you to write a classic dodge game
猜你喜欢

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)

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)

MySQL learning -- table structure of SQL test questions
随机推荐
Pagoda activities, team members can enjoy a lightweight server 1 core 2g5m 28 yuan for two years
Modern finite element analysis can easily achieve accurate results
Funny! Pictures and texts give you a comprehensive understanding of the effects of dynamics and mass
Try catch finally implementation mechanism
[web] what happens after entering the URL from the address bar?
Clickhouse high performance column storage core principle
Tencent monthly security report helps rural revitalization, releases cloud security reports, and jointly builds a joint network security laboratory
Several schemes of traffic exposure in kubernetes cluster
zblog系统实现前台调用当天发布文章数量的教程
Data acquisition and transmission instrument reservoir dam safety monitoring
Factory mode
Yuanqi forest started from 0 sugar and fell at 0 sugar
One article combs multi task learning (mmoe/ple/dupn/essm, etc.)
2021 devopsdays Tokyo Station ends perfectly | coding experts are invited to share the latest technical information
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
[playing with Tencent cloud] a solution to the impassability of cross-border access to foreign websites using Tencent cloud CVM
What is a server
Release! Tencent IOA and Tencent sky screen were selected into the first batch of certified products of domestic digital trusted services
04. Tencent cloud IOT device side learning - network connection and device authentication
Building a cross public chain platform to solve DAPP development problems