action08 发表于 2015-02-26 09:03

感觉现在可以写fb+nginx trouble环境部署troubleshooting手册了----2-26

该死的ports默认还要自己执行一下mkdir /var/tmp/nginxroot@freebsd:/usr/local/sbin #
root@freebsd:/usr/local/sbin # ./nginx -t
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: mkdir() "/var/tmp/nginx/client_body_temp" failed (2: No such file or directory)
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
root@freebsd:/usr/local/sbin #
root@freebsd:/usr/local/sbin #
root@freebsd:/usr/local/sbin # mkdir /var/tmp/nginx
root@freebsd:/usr/local/sbin #
root@freebsd:/usr/local/sbin # ./nginx -t
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
root@freebsd:/usr/local/sbin #
root@freebsd:/usr/local/sbin #
root@freebsd:/usr/local/sbin #
不知道招惹哪路nginx配置了,愣是妹找着什么叫client_body_temp

action08 发表于 2015-02-26 09:07

本帖最后由 action08 于 2015-02-26 09:08 编辑

自己根据需要修改配置文件
nano /usr/local/etc/nginx/nginx.conf
我只是简单学习,简单一带而过,root@freebsd:/usr/local/sbin #
root@freebsd:/usr/local/sbin # ps aux|grep nginx
root706   0.02.0 13408 4936-Is    5:04PM0:00.00 nginx: master process ./nginx
games 707   0.02.2 13408 5192-I   5:04PM0:00.00 nginx: worker process (nginx)
root712   0.00.1   3442320R+    5:05PM0:00.00 grep nginx
root@freebsd:/usr/local/sbin #
root@freebsd:/usr/local/sbin #
启动成功了shell@ubuntu:~$ nmap 192.168.1.12

Starting Nmap 5.21 ( http://nmap.org ) at 2015-02-26 08:52 CST
Nmap scan report for promote.cache-dns.local (192.168.1.12)
Host is up (0.0011s latency).
Not shown: 999 closed ports
PORT   STATE SERVICE
22/tcp openssh

Nmap done: 1 IP address (1 host up) scanned in 6.26 seconds
shell@ubuntu:~$
shell@ubuntu:~$
shell@ubuntu:~$ nmap 192.168.1.12

Starting Nmap 5.21 ( http://nmap.org ) at 2015-02-26 09:05 CST
Nmap scan report for promote.cache-dns.local (192.168.1.12)
Host is up (0.00092s latency).
Not shown: 998 closed ports
PORT   STATE SERVICE
22/tcp openssh
80/tcp openhttp

Nmap done: 1 IP address (1 host up) scanned in 6.23 seconds
shell@ubuntu:~$

下面还要配置mysql/php
nginx简单,这些才是头疼纠结的

action08 发表于 2015-02-26 09:22

root@freebsd:/usr/ports/databases/mariadb-server #
root@freebsd:/usr/ports/databases/mariadb-server # cat distinfo
SHA256 (mariadb-5.3.12.tar.gz) = 83a4598117cadde2bd7eac4c1398edbc86cc3aa8d3824bbee864d4b568a3a30c
SIZE (mariadb-5.3.12.tar.gz) = 26880808
root@freebsd:/usr/ports/databases/mariadb-server # cd ../mariadb55-
mariadb55-client/ mariadb55-server/
root@freebsd:/usr/ports/databases/mariadb-server # cd ../mariadb55-server/
root@freebsd:/usr/ports/databases/mariadb55-server #
root@freebsd:/usr/ports/databases/mariadb55-server #
root@freebsd:/usr/ports/databases/mariadb55-server # ls
Makefile        distinfo        files                pkg-descr        pkg-plist
root@freebsd:/usr/ports/databases/mariadb55-server #
root@freebsd:/usr/ports/databases/mariadb55-server #
root@freebsd:/usr/ports/databases/mariadb55-server # cat distinfo
SHA256 (mariadb-5.5.39.tar.gz) = cb850865ab55ce5f01c99a612cc75b76ead5d75adfa75a606f453d32f9089d14
SIZE (mariadb-5.5.39.tar.gz) = 45084762
root@freebsd:/usr/ports/databases/mariadb55-server #
root@freebsd:/usr/ports/databases/mariadb55-server #
root@freebsd:/usr/ports/databases/mariadb55-server #
情况还真是复杂{:yct50:}

lsstarboy 发表于 2015-02-27 08:40

pgsql现在也挺流行的,如果没受mysql毒害,可以考虑。
页: [1]
查看完整版本: 感觉现在可以写fb+nginx trouble环境部署troubleshooting手册了----2-26