squid-cache/Reverse Proxy/起動について、ここに記述してください。
https://wiki.squid-cache.org/SquidFaq/InstallingSquid#How_do_I_start_Squid.3F
http://www.squid-cache.org/Doc/config/cache_effective_user/
Default Value: cache_effective_user nobody
(nobodyがないのか)
If you start Squid as root, it will change its effective/real UID/GID to the user specified below.
- The default is to change to UID of nobody.
- see also; cache_effective_group
Once the creation of the cache directories completes, you can start Squid and try it out. Probably the best thing to do is run it from your terminal and watch the debugging output. Use this command:
# /usr/local/squid/sbin/squid -NCd1 2017/12/27 23:17:18| Set Current Directory to /usr/local/squid/var/cache/squid 2017/12/27 23:17:18| Starting Squid Cache version 3.5.27-20171207-re69e56c for i386-unknown-freebsd11.0... 2017/12/27 23:17:18| Service Name: squid 2017/12/27 23:17:18| Process ID 56203 2017/12/27 23:17:18| Process Roles: master worker 2017/12/27 23:17:18| With 58158 file descriptors available 2017/12/27 23:17:18| Initializing IP Cache... 2017/12/27 23:17:18| DNS Socket created at [::], FD 9 2017/12/27 23:17:18| DNS Socket created at 0.0.0.0, FD 10 2017/12/27 23:17:18| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2017/12/27 23:17:18| Adding domain . from /etc/resolv.conf 2017/12/27 23:17:18| Logfile: opening log daemon:/usr/local/squid/var/logs/access.log 2017/12/27 23:17:18| Logfile Daemon: opening log /usr/local/squid/var/logs/access.log 2017/12/27 23:17:18| WARNING: no_suid: setuid(0): (1) Operation not permitted 2017/12/27 23:17:18| WARNING: no_suid: setuid(0): (1) Operation not permitted 2017/12/27 23:17:18| Unlinkd pipe opened on FD 16 2017/12/27 23:17:18| Store logging disabled 2017/12/27 23:17:18| Swap maxSize 102400 + 262144 KB, estimated 28041 objects 2017/12/27 23:17:18| Target number of buckets: 1402 2017/12/27 23:17:18| Using 8192 Store buckets 2017/12/27 23:17:18| Max Mem size: 262144 KB 2017/12/27 23:17:18| Max Swap size: 102400 KB 2017/12/27 23:17:18| Rebuilding storage in /usr/local/squid/var/cache/squid (no log) 2017/12/27 23:17:18| Using Least Load store dir selection 2017/12/27 23:17:18| Set Current Directory to /usr/local/squid/var/cache/squid 2017/12/27 23:17:18| Finished loading MIME types and icons. 2017/12/27 23:17:18| HTCP Disabled. 2017/12/27 23:17:18| Configuring Parent 127.0.0.2/80/0 2017/12/27 23:17:18| Squid plugin modules loaded: 0 2017/12/27 23:17:18| Adaptation support is off. 2017/12/27 23:17:18| Accepting reverse-proxy HTTP Socket connections at local=[::]:8080 remote=[::] FD 18 flags=9 2017/12/27 23:17:25| Done scanning /usr/local/squid/var/cache/squid dir (0 entries) 2017/12/27 23:17:25| Finished rebuilding storage from disk. 2017/12/27 23:17:25| 0 Entries scanned 2017/12/27 23:17:25| 0 Invalid entries. 2017/12/27 23:17:25| 0 With invalid flags. 2017/12/27 23:17:25| 0 Objects loaded. 2017/12/27 23:17:25| 0 Objects expired. 2017/12/27 23:17:25| 0 Objects cancelled. 2017/12/27 23:17:25| 0 Duplicate URLs purged. 2017/12/27 23:17:25| 0 Swapfile clashes avoided. 2017/12/27 23:17:25| Took 6.72 seconds ( 0.00 objects/sec). 2017/12/27 23:17:25| Beginning Validation Procedure 2017/12/27 23:17:25| Completed Validation Procedure 2017/12/27 23:17:25| Validated 0 Entries 2017/12/27 23:17:25| store_swap_size = 0.00 KB 2017/12/27 23:17:25| storeLateRelease: released 0 objects
1. cancel
2017/12/27 23:22:46| Preparing for shutdown after 20 requests 2017/12/27 23:22:46| Waiting 0 seconds for active connections to finish 2017/12/27 23:22:46| Closing HTTP port [::]:8080 2017/12/27 23:22:47| Shutdown: NTLM authentication. 2017/12/27 23:22:47| Shutdown: Negotiate authentication. 2017/12/27 23:22:47| Shutdown: Digest authentication. 2017/12/27 23:22:47| Shutdown: Basic authentication. 2017/12/27 23:22:48| Shutting down... 2017/12/27 23:22:48| Closing unlinkd pipe on FD 16 2017/12/27 23:22:48| storeDirWriteCleanLogs: Starting... 2017/12/27 23:22:48| Finished. Wrote 23 entries. 2017/12/27 23:22:48| Took 0.00 seconds (48832.27 entries/sec). 2017/12/27 23:22:48| Logfile: closing log daemon:/usr/local/squid/var/logs/access.log 2017/12/27 23:22:48| Logfile Daemon: closing log daemon:/usr/local/squid/var/logs/access.log 2017/12/27 23:22:48| Open FD UNSTARTED 0 stdin 2017/12/27 23:22:48| Open FD UNSTARTED 1 stdout 2017/12/27 23:22:48| Open FD UNSTARTED 2 stderr 2017/12/27 23:22:48| Open FD UNSTARTED 9 DNS Socket IPv6 2017/12/27 23:22:48| Open FD READ/WRITE 10 DNS Socket IPv4 2017/12/27 23:22:48| Open FD UNSTARTED 11 IPC UNIX STREAM Parent 2017/12/27 23:22:48| Squid Cache (Version 3.5.27-20171207-re69e56c): Exiting normally.