1. Service Management
Check service status
supervisorctl statusRestart the service
supervisorctl reload2. Environment Configuration
Supervisor configuration file
cat /etc/supervisor/conf.d/web.confWeb startup file
/root/web.pyLog file paths
| Log Type | File Path |
|---|---|
| Error Log | /var/log/supervisor/web_error.log |
| Standard Output Log | /var/log/supervisor/web_stdout.log |
3. Local Testing Example
You can verify the PaddleOCR installation with a simple Python test:
from paddleocr import PaddleOCR, draw_ocr
# Initialize the OCR engine
ocr = PaddleOCR(use_angle_cls=True, lang='ch')
# Run OCR on an image
result = ocr.ocr('test.jpg')
# Print recognition results
print(result)4. Additional References
For more details and advanced configuration, refer to the official PaddlePaddle documentation:
👉 https://www.paddleocr.ai/latest/en/index.html
