freebsd

upstream prematurely closed connection while reading response header from upstream, client

ぃ、小莉子 提交于 2019-12-12 11:26:20
问题 I'm getting this error from /var/log/messages on my FreeBSD box. I'm using nginx and spawn-fcgi with memcache and apc modules enabled. upstream prematurely closed connection while reading response header from upstream, client HTTP/1.1", upstream: "fastcgi://unix:/tmp/fcgi.sock:", host: 回答1: I've had a similar error with unicorn + nginx. The end result was that the unicorn was timing out due to a firewall misconfiguration, dieing off and leaving NGINX clueless as to what to do (nginx would

GNU make wildcard alternative?

北战南征 提交于 2019-12-12 10:46:30
问题 I would like to select all files in directory but using FreeBSD's make. In GNU make this approach works: FILES=$(wildcard *.c) I am using FreeBSD's make, not GNU make so I am looking for command that will work in FreeBSD's make. As it s stated in bottom link, FreeBSD has it's own functions but I cannot find them. Generic Makefile not working on FreeBSD 回答1: You can use != to execute a command in FreeBSD's make . E.g: FILES!= ls *.c or if you want to find files in subdirectories as well; FILES

How good is FreeBSD as a development platform?

两盒软妹~` 提交于 2019-12-12 08:18:26
问题 I know that lots of web hosting providers are offering FreeBSD, but how good is FreeBSD as a development platform? Specifically, is Java 1.6 available in it? Is there somthing specific that it offers with regard to tools that is not available under Linux? 回答1: I've always found FreeBSD a wonderful secure hosting environment, but perhaps not the easiest development platform. You will have to dig a bit to get Java 1.6 up and running, though I think it will be doable. I hope you are familiar

FreeBSD equivalent to unixodbc-dev

丶灬走出姿态 提交于 2019-12-12 05:48:45
问题 I'm trying to compile Erlang on FreeBSD, and I want to include the odbc licenses. On Ubuntu, if you add the unixodbc-dev package, that ensures that odbc gets compiled with Erlang, however, I can't find a package that works equivalently with FreeBSD. I've tried installing the unixODBC package, and the libodbc++ with libiodbc packages. Neither of these work. I've also tried download unixodbc from unixodbc.org and installing that, to no avail. So if there's a package I can use, or if there's

Undefined reference with -static?

别等时光非礼了梦想. 提交于 2019-12-12 04:17:05
问题 When I try to compile my program with CFLAGS = -static i receive an error undefined reference. When compiling without static works perfectly. My question is why the static error gives me undefined reference? I installed with pkg install mysql57-server And linked mysql_config --libs Help ? 回答1: When linking static libs, the order in which they come in command line matters (well, at least on FreeBSD). Try putting -lmysqlclient before/after all libraries. And make sure there is /usr/local/lib

POST-ing to php-fpm increases disk i/o writes

孤者浪人 提交于 2019-12-12 04:08:56
问题 I'm sending POST data about 100KB to my application and it causes php-pfm process to create many pipes and write to disk. I'm wondering how this can be avoided. PID USERNAME VCSW IVCSW READ WRITE FAULT TOTAL PERCENT COMMAND 3915 www 6773 298 0 38 0 38 8.86% php-fpm 3932 www 4744 177 0 10 0 10 2.33% php-fpm 3753 www 4522 157 0 52 0 52 12.12% php-fpm 3910 www 3551 166 0 51 0 51 11.89% php-fpm 3934 www 4169 207 0 45 0 45 10.49% php-fpm 3989 www 3183 152 0 13 0 13 3.03% php-fpm 3844 www 4176 134

Remote connect to SQL Server Standard Edition from PHP/FreeBSD

北城以北 提交于 2019-12-12 02:48:14
问题 Unable to connect to our company MSSQL server from one of our FreeBSD servers. # telnet 192.168.1.51 1433 Trying 192.168.1.51... telnet: connect to address 192.168.1.51: Connection refused telnet: Unable to connect to remote host No firewall running on the MSSQL server, and i have opened the default port on the BSD-FW 00210 allow tcp from any to any dst-port 1433 in 00215 allow tcp from any to any dst-port 1433 out Any ideas on this? The specifics of the MSSQL server running on a Windows

Can't compile / install Ruby 1.8.6 with RVM (Error running '__rvm_make -B -j8')

荒凉一梦 提交于 2019-12-12 02:06:41
问题 I am having issues compiling Ruby 1.8.6 using RVM on FreeBSD 10. How can I solve this? Commands run: rvm remove 1.8.6 (to make sure we start clean) rvm autolibs enable rvm install 1.8.6 --with-gcc=clang Install log and error given: [root@sensation ~]# rvm install 1.8.6 --with-gcc=clang Checking requirements for freebsd. Requirements installation successful. Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.8.6-p420, this may take a while depending on your cpu(s)... ruby-1.8.6-p420

Equivalent to libmysqldev FreeBSD

落花浮王杯 提交于 2019-12-11 23:42:34
问题 I have compiled a program in fedora using the mysql dev library (include mysql.h in header file). I need to compile in on FreeBSD. I do not want to download from source and compile but rather would like to download from ports or something equivalent to facilitate removing it if need be. Does anyone know the equivalent of the libmysql-dev in FreeBSD. I have not found it in ports? 回答1: You do not need a special package for this. The standard mysql client package/port already includes the

Python clock function on FreeBSD

你说的曾经没有我的故事 提交于 2019-12-11 14:38:40
问题 While testing Pythons time.clock() function on FreeBSD I've noticed it always returns the same value, around 0.156 The time.time() function works properly but I need a something with a slightly higher resolution. Does anyone the C function it's bound to and if there is an alternative high resolution timer? I'm not profiling so the TimeIt module is not really appropriate here. 回答1: time.clock() returns the processor time. That is, how much time the current process has used on the processor. So