Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[macOS] Running FlareSolverr as a service (launchd agent)#99

XxUnkn0wnxX started this conversation inGeneral
Discussion options

Hi thought I'd share my implementation of runningFlareSolverr

be sure to have node installed via homebrew:https://brew.sh
be sure you have the dir where homebrew links all its Formula in/etc/paths

mine looks like this, I've added/usr/local/bin to the top.

/usr/local/bin/usr/bin/bin/usr/sbin/sbin

to find out where brew symlinks all itsFormula runbrew --prefix node in terminal & it should output the full path to node as well as the folder where everything else is linked, for me its/usr/local/bin & M1 macs will typically use/opt/homebrew/bin

now either usinghttps://www.soma-zone.com/LaunchControl/ or you just modify the following plsit to suit your environment.

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPEplist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plistversion="1.0"><dict><key>EnvironmentVariables</key><dict><key>CAPTCHA_SOLVER</key><string>none</string><key>LOG_HTML</key><string>false</string><key>LOG_LEVEL</key><string>info</string><key>PATH</key><string>/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin</string><key>PORT</key><string>8085</string></dict><key>KeepAlive</key><true/><key>Label</key><string>FlareSolverr</string><key>ProcessType</key><string>Interactive</string><key>ProgramArguments</key><array><string>/usr/local/bin/node</string><string>dist/index.js</string></array><key>RunAtLoad</key><true/><key>StandardErrorPath</key><string>logs/FlareSolverr-error.log</string><key>StandardOutPath</key><string>logs/FlareSolverr.log</string><key>WorkingDirectory</key><string>/Users/USER/Apps/FlareSolverr</string></dict></plist>

save asFlareSolverr.plist in~/Library/LaunchAgents folder, typeopen ~/Library/LaunchAgents in terminal & it should open the folder.

Screen Shot 2021-03-19 at 3 56 06 am

where<string>8085</string> change the port to whatever port value you need,
where<string>/Users/USER/Apps/FlareSolverr</string>USER this will be your user folder name, or just copy & paste the full path to where you git cloned the "FlareSolverr" folder to

where<string>/usr/local/bin/node</string> this is the full path location to where node is installed via homebrew (once homebrew has installed node) just type inbrew --prefix node in terminal & it should output the full path.
this location will be different on ARM mac's.

where

<key>RunAtLoad</key><true/>

set this to false if you don't want it to run on boot.

make the directorylogs In the root of theFlareSolverr folder so logging works.
Screen Shot 2021-03-19 at 3 51 44 am

every time you start ur mac it should autorun on load, to load & unload use:

To Load:
launchctl load ~/Library/LaunchAgents/FlareSolverr.plist

To Unload: <-- be sure to use this before doing any git pull requests to updateFlareSolverr
launchctl unload ~/Library/LaunchAgents/FlareSolverr.plist

You must be logged in to vote

Replies: 5 comments

Comment options

having some trouble with my version of your .plist

Mon Aug 23 12:28:30iMac191:~ john$ brew --prefix node/usr/local/opt/node

screenshot_ 2021-08-23 at 1 09 24 PM

EDIT:
I used the path for the brew alias inside ofusr/local/bin instead of the path given by the brew command you mention,brew --prefix node

You must be logged in to vote
0 replies
Comment options

FlareSolverr v2.0.0 is out.

You must be logged in to vote
0 replies
Comment options

@XxUnkn0wnxX

Can't find theindex.js that I need to link to after version 2.0 release.

Error: Cannot find module '/Users/john/Documents/GitHub/FlareSolverr/dist/index.js'    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)    at Function.Module._load (node:internal/modules/cjs/loader:778:27)    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)    at node:internal/main/run_main_module:17:47 {  code: 'MODULE_NOT_FOUND',  requireStack: []}

EDIT:
replacedist/index.js withdist/server.js

You must be logged in to vote
0 replies
Comment options

@XxUnkn0wnxX Any updates on running FlareSolverr 3.0 as a service on macOS. I can get it to run from Terminal but can't seem to construct a plist that works.

I have

You must be logged in to vote
0 replies

This comment was marked as spam.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
3 participants
@XxUnkn0wnxX@ngosang@MrHoofer

[8]ページ先頭

©2009-2025 Movatter.jp