freebsd

UTF-8 with mysql and php in freebsd swedish chars (åäö) [duplicate]

☆樱花仙子☆ 提交于 2019-12-08 14:23:54
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: UTF-8 all the way through Hi I recently switched from linux to freebsb on my server, and now my database is acting up. When I try to echo a string containing å,ä or ö (swedish letters) it becomes a questionmark. ie: Söndag becomes S�ndag. echo "ä"; works. $ file --mime test.php test.php: text/plain; charset=utf-8 test.php <?php $a="å"; mysql_connect("localhost", "root", ":-)"); mysql_select_db("lidev"); $result

best practices for transfering ruby gems collection from one machine to another

走远了吗. 提交于 2019-12-08 10:10:20
问题 i want to copy all of my gems from one machine (foo) to another (bar). both machines are identical except that foo has a bunch of gems installed and bar does not (bar cannot get onto the internet). i copied /usr/local/lib/ruby/gems from foo to bar, and now bar recognizes that the gems are installed. root@bar # gem list *** LOCAL GEMS *** keybox (1.2.1) rake (0.9.2.2) ... and so on if i try to run them from their native location, they work as expected root@bar # cd /usr/local/lib/ruby/gems/1.8

Add new system call at FreeBSD 10.1

风格不统一 提交于 2019-12-08 08:19:23
问题 I wanna add new system call at FreeBSD. My system call code is: #include <sys/types.h> #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> #include <sys/proc.h> #include <sys/mount.h> #include <sys/sysproto.h> int Sum(int a, int b); int Sum(a,b) { int c; c = a + b; return (0); } But when I rebuild the kernel, I have an error: What's wrong? Can you help me? Thanks a lot. 回答1: Here's how I did it with my example system call of setkey which takes two unsigned ints. I added my

FreeBSD iostat - How to tell if there's a problem? [closed]

三世轮回 提交于 2019-12-08 03:43:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I run a FreeBSD NFS server and recently I've been having odd issues throughout the cluster (the Apache servers are hanging in "lockf" state when loading files from the NFS share, etc). I'm fairly new to this, so my question is how can I tell if a server's IO is getting overloaded? Here is my current iostat:

Difference in kqueue handling of fifos between Mac OS and FreeBSD?

时光怂恿深爱的人放手 提交于 2019-12-07 13:08:12
问题 I'm working on an application that uses fifos for IPC and uses an event-notification API (such as epoll or kqueue) to monitor the fifos for data to be read. The application expects that if the writer for a fifo terminates that the reader will receive an event via the event notification API, allowing the reader to notice that the writer terminated. I'm currently porting this application to macos and I'm running into some odd behavior with kqueue. I've been able to create a reproducer of this

Add new system call at FreeBSD 10.1

落爺英雄遲暮 提交于 2019-12-07 06:07:25
I wanna add new system call at FreeBSD. My system call code is: #include <sys/types.h> #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> #include <sys/proc.h> #include <sys/mount.h> #include <sys/sysproto.h> int Sum(int a, int b); int Sum(a,b) { int c; c = a + b; return (0); } But when I rebuild the kernel, I have an error: What's wrong? Can you help me? Thanks a lot. Here's how I did it with my example system call of setkey which takes two unsigned ints. I added my system call to the end /kern/syscalls.master 546 AUE_NULL STD { int setkey(unsigned int k0, unsigned int k1);

sed extra characters at end of l command

扶醉桌前 提交于 2019-12-07 06:04:23
问题 I am trying replace value in a config file with sed in cshell. However it gives me the error: sed: 1: "/usr/local/etc/raddb/mo ...": extra characters at the end of l command I am trying the following command: sed -i "s/private_key_password = .*/private_key_password = test/" /usr/local/etc/raddb/mods-available/eap I have looked at examples of sed to do this but they all look similar with what I am doing, what is going wrong here? 回答1: FreeBSD sed requires an argument after -i to rename the

How do I find out the default server character set in mysql?

ε祈祈猫儿з 提交于 2019-12-07 05:39:36
问题 Using MySQL on FreeBSD 8.2. How do I find out the default server character set? Is there some command I can run or file I can check? UPDATE Actually I want to know how to find both the default server character set and the current server character set. 回答1: As documented under Server Character Set and Collation: Initially, the server character set and collation depend on the options that you use when you start mysqld. You can use --character-set-server for the character set. Along with it, you

apache + redmine 403 - premissions are good

喜欢而已 提交于 2019-12-06 11:35:33
问题 i searched sth about this a lot but solutions doesnt help so much.I tried to upgrade redmine to 2.6.5 on my FreeBSD but i have 403 error. apache error log: [autoindex:error] AH01276: Cannot serve directory /usr/local/www/redmine/public/: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive my httpd conf: <VirtualHost example.com:80> DocumentRoot "/usr/local/www/redmine/public" ServerName example.com FastCgiServer /usr/local/www/redmine

FreeBSD虚拟机 VMware Tools 安装教程

六月ゝ 毕业季﹏ 提交于 2019-12-06 08:17:40
对于 FreeBSD 虚拟机,您可以使用 命令 行工具手动安装或升级 VMware Tools 前提条件 开启虚拟机。 确认客户机操作系统正在运行。 因为 VMware Tools 安装程序是使用 Perl 编写的,请确认已在客户机操作系统中安装 Perl。 过程 在主机上,从 Workstation Pro 菜单栏中选择虚拟机 > 安装 VMware Tools。 如果安装了早期版本的 VMware Tools,则菜单项是 更新 VMware Tools。 在虚拟机中,以 root 身份登录到客户机操作系统并打开终端窗口。 如果发行版本未自动装载 CD-ROM,请装载 VMware Tools 虚拟 CD-ROM 映像。 例如,键入 mount /cdrom。 转到工作目录,例如 /tmp。 cd /tmp 解压缩 VMware Tools .tar.gz 文件。 tar zxpf /cdrom/vmware-freebsd-tools.tar.gz 如果发行版本不使用自动装载,请卸载 VMware Tools 虚拟 CD-ROM 映像。 umount /cdrom 运行安装程序并配置 VMware Tools。 cd vmware-tools-distrib ./vmware-install.pl 通常,在安装程序文件结束运行后,将行 vmware-config-tools