Install mysql55, the dependent package is: mysql-5.5.10.tar.gz and cmake-2.8.4.tar.gz, will be automatically downloaded, if you have it, you can also put your own/usr/ports/distfiles/directory, save it need to download.
- CD/usr/ports/database/mysql55-server/
- Make install clean # Make with_charset = GBK with_xcharset = All with_proc_scope_pth = Yes build_optimized = Yes build_static = Yes skip_dns_check = Yes
- EE/etc/rc. conf, add a line at the end of mysql_enable = "yes"
- CP/usr/local/share/MySQL/my-large.cnf/usr/local/etc/My. CNF # MySQL optimization parameters can also be manually modified
CP/usr/local/share/MySQL/my-small.cnf/etc/My. CNF location ????
- /Usr/local/bin/mysql_install_db
- /Usr/local/etc/rc. d/MySQL-Server start
- /Usr/local/bin/mysqladmin-u Root Password 'yournewpassword'
- Rehash
- Mysql-u root-P
In this way, you can access MySQL, but you 'd better change the password, not the same as mine.
Install nginx, dependent packages: nginx-0.8.54.tar.gz and pcre-8.12.tar.bz2
- CD/usr/ports/www/nginx/
- Make install clean
- EE/etc/rc. conf, add a line nginx_enable = "yes"
- /Usr/local/etc/rc. d/nginx start
Now, you can test whether the Web Service is normal. If the webpage returns: Welcome to nginx! It indicates that it is normal.
Install PHP, dependent packages: php-5.3.6.tar.bz2, autoconf-2.68.tar.bz2,suhosin-patch-5.3.6-0.9.10.patch.gz, perl-5.10.1.tar.bz2, BSDPAN-5.12.1_20100713.tar.bz2, m4-1.4.16.tar.bz2, gettext-0.18.1.1.tar.gz, libtool-2.4.tar.gz, small
- CD/usr/ports/lang/PhP5/
- Make install clean
- EE/etc/rc. conf, add php_fpm_enable = "yes" to the last line"
- /Usr/local/etc/rc. d/PHP-FPM start