


FreeNAS 9 のJail環境にWordpressを動作させる試みで、今度はmysqlです
参考サイト
Setting up a FreeBSD 9 WordPress Server on 128MB of RAM
http://virtuallyhyper.com/2013/04/setting-up-freebsd-9-wordpress-server-on-128mb-of-ram/
関連記事
Install WordPress on FreeNAS 9 – Nginx
http://www.rootlinks.net/2013/11/15/install-wordpress-on-freenas-9-nginx/
Install WordPress on FreeNAS 9 – PHP
http://www.rootlinks.net/2013/11/15/install-wordpress-on-freenas-9-php/
Install WordPress on FreeNAS 9 – PHP extensions
http://www.rootlinks.net/2013/11/16/install-wordpress-on-freenas-9-php-extensions/
FreeNAS 9 – pkg-static: fstat() failed for(): No such file or directory
http://www.rootlinks.net/2013/11/17/freenas-9-pkg-static-fstat-failed-for-no-such-file-or-directory/
FreeNAS 9 – pkgng/pkg2ng (Reinstall php5)
http://www.rootlinks.net/2013/11/17/freenas-9-pkgngpkg2ng-reinstall_php5/
Install WordPress on FreeNAS 9 – PHP extensions(reinstall)
http://www.rootlinks.net/2013/11/17/install-wordpress-on-freenas-9-php-extensionsreinstall/
Install WordPress on FreeNAS 9 – php5-zlib
http://www.rootlinks.net/2013/11/18/install-wordpress-on-freenas-9-php5-zlib/
いつものようにportsからインストールします
- Optionの確認
- makeの実行
- make installの実行
- make cleanの実行
- mysqlの自動起動設定
1 2 3 4 5 6 7 8 9 10 11 |
root@vhost:/ # cd /usr/ports/databases/mysql55-server/ oot@vhost:/usr/ports/databases/mysql55-server # make showconfig-recursive ===> The following configuration options are available for mysql55-server-5.5.34 and dependencies ===> The following configuration options are available for mysql55-server-5.5.34: SSL=on: SSL protocol support FASTMTX=off: Replace mutexes with spinlocks ===> Use 'make config' to modify these settings ===> The following configuration options are available for mysql55-client-5.5.34: SSL=on: SSL protocol support FASTMTX=off: Replace mutexes with spinlocks ===> Use 'make config' to modify these settings |
BuiltオプションのBUILD_OPTIMIZEDは高速処理を最適化するオプションのようですが、私の拙い英語力では間違いの可能性大です
View Full Version : [Solved] MySQL port settings for the best performance
http://forums.freebsd.org/archive/index.php/t-19216.html
1 2 3 4 5 6 7 8 9 10 11 12 13 |
root@vhost:/usr/ports/databases/mysql55-server # make -D BUILD_OPTIMIZED ===> License GPLv2 accepted by the user ===> Found saved configuration for mysql55-server-5.5.34 ===> mysql55-server-5.5.34 depends on file: /usr/local/sbin/pkg - found => mysql-5.5.34.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch ftp://ftp.fi.muni.cz/pub/mysql/Downloads/MySQL-5.5/mysql-5.5.34.tar.gz mysql-5.5.34.tar.gz 100% of 23 MB 672 kBps 00m00s ===> Fetching all distfiles required by mysql55-server-5.5.34 for building (snip) Linking CXX shared module semisync_master.so [100%] Built target semisync_master Linking C shared module udf_example.so [100%] Built target udf_example |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
root@vhost:/usr/ports/databases/mysql55-server # make install ===> Installing for mysql55-server-5.5.34 ===> mysql55-server-5.5.34 depends on shared library: mysqlclient.18 - found ===> Generating temporary packing list ===> Checking if databases/mysql55-server already installed ===> Creating users and/or groups. Creating group `mysql' with gid `88'. Creating user `mysql' with uid `88'. [ 0%] Built target INFO_BIN [ 0%] Built target INFO_SRC [ 2%] Built target yassl [ 5%] Built target taocrypt [ 9%] Built target strings [ 19%] Built target mysys [ 19%] Built target dbug [ 20%] Built target comp_err [ 20%] Built target GenError [ 25%] Built target myisam [ 31%] Built target myisam_embedded [ 31%] Built target myisam_ftdump [ 31%] Built target myisamchk [ 31%] Built target myisamlog [ 31%] Built target myisampack [ 31%] Built target csv [ 31%] Built target csv_embedded [ 33%] Built target perfschema [ 36%] Built target heap [ 38%] Built target myisammrg [ 48%] Built target innobase [ 48%] Built target vio [ 48%] Built target regex [ 48%] Built target partition [ 48%] Built target gen_lex_hash [ 48%] Built target GenServerSource [ 63%] Built target sql [ 63%] Built target mysqld [ 63%] Built target mysqlservices [ 63%] Built target archive [ 65%] Built target perfschema_embedded [ 66%] Built target example [ 67%] Built target blackhole [ 69%] Built target heap_embedded [ 69%] Built target hp_test1 [ 69%] Built target hp_test2 [ 72%] Built target myisammrg_embedded [ 81%] Built target innobase_embedded [ 81%] Built target federated [ 81%] Built target auth [ 81%] Built target auth_test_plugin [ 81%] Built target qa_auth_client [ 81%] Built target qa_auth_interface [ 81%] Built target qa_auth_server [ 81%] Built target daemon_example [ 81%] Built target ftexample [ 81%] Built target audit_null [ 81%] Built target semisync_master [ 81%] Built target semisync_slave [ 81%] Built target thr_lock [ 81%] Built target clientlib [ 81%] Built target libmysql [ 81%] Built target mysqlclient [ 81%] Built target innochecksum [ 82%] Built target my_print_defaults [ 83%] Built target perror [ 84%] Built target replace [ 84%] Built target resolve_stack_dump [ 84%] Built target resolveip [ 84%] Built target mysql_plugin [ 84%] Built target comp_sql [ 84%] Built target GenFixPrivs [ 84%] Built target mysql_upgrade [ 84%] Built target mysqltest [ 84%] Built target mysql_tzinfo_to_sql [ 85%] Built target partition_embedded [ 85%] Built target udf_example [ 99%] Built target sql_embedded [100%] Built target mysqlserver Installing the project stripped... -- Install configuration: "Release" -- Installing: /usr/local/info/mysql.info -- Installing: /usr/local/bin/myisam_ftdump -- Installing: /usr/local/bin/myisamchk -- Installing: /usr/local/bin/myisamlog -- Installing: /usr/local/bin/myisampack -- Installing: /usr/local/lib/mysql/plugin/ha_archive.so -- Installing: /usr/local/lib/mysql/plugin/ha_example.so -- Installing: /usr/local/lib/mysql/plugin/ha_blackhole.so -- Installing: /usr/local/lib/mysql/plugin/ha_federated.so -- Installing: /usr/local/lib/mysql/plugin/auth.so -- Installing: /usr/local/lib/mysql/plugin/auth_test_plugin.so -- Installing: /usr/local/lib/mysql/plugin/qa_auth_interface.so -- Installing: /usr/local/lib/mysql/plugin/qa_auth_server.so -- Installing: /usr/local/lib/mysql/plugin/qa_auth_client.so -- Installing: /usr/local/lib/mysql/plugin/libdaemon_example.so -- Installing: /usr/local/lib/mysql/plugin/daemon_example.ini -- Installing: /usr/local/lib/mysql/plugin/mypluglib.so -- Installing: /usr/local/lib/mysql/plugin/adt_null.so -- Installing: /usr/local/lib/mysql/plugin/semisync_master.so -- Installing: /usr/local/lib/mysql/plugin/semisync_slave.so -- Installing: /usr/local/bin/my_print_defaults -- Installing: /usr/local/bin/perror -- Installing: /usr/local/bin/resolveip -- Installing: /usr/local/bin/replace -- Installing: /usr/local/bin/innochecksum -- Installing: /usr/local/bin/resolve_stack_dump -- Installing: /usr/local/bin/mysqltest -- Installing: /usr/local/bin/mysql_upgrade -- Installing: /usr/local/bin/mysql_plugin -- Installing: /usr/local/libexec/mysqld -- Installing: /usr/local/bin/mysql_tzinfo_to_sql -- Installing: /usr/local/share/mysql/danish -- Installing: /usr/local/share/mysql/danish/errmsg.sys -- Installing: /usr/local/share/mysql/german -- Installing: /usr/local/share/mysql/german/errmsg.sys -- Installing: /usr/local/share/mysql/slovak -- Installing: /usr/local/share/mysql/slovak/errmsg.sys -- Installing: /usr/local/share/mysql/dutch -- Installing: /usr/local/share/mysql/dutch/errmsg.sys -- Installing: /usr/local/share/mysql/greek -- Installing: /usr/local/share/mysql/greek/errmsg.sys -- Installing: /usr/local/share/mysql/norwegian -- Installing: /usr/local/share/mysql/norwegian/errmsg.sys -- Installing: /usr/local/share/mysql/spanish -- Installing: /usr/local/share/mysql/spanish/errmsg.sys -- Installing: /usr/local/share/mysql/english -- Installing: /usr/local/share/mysql/english/errmsg.sys -- Installing: /usr/local/share/mysql/hungarian -- Installing: /usr/local/share/mysql/hungarian/errmsg.sys -- Installing: /usr/local/share/mysql/norwegian-ny -- Installing: /usr/local/share/mysql/norwegian-ny/errmsg.sys -- Installing: /usr/local/share/mysql/swedish -- Installing: /usr/local/share/mysql/swedish/errmsg.sys -- Installing: /usr/local/share/mysql/italian -- Installing: /usr/local/share/mysql/italian/errmsg.sys -- Installing: /usr/local/share/mysql/polish -- Installing: /usr/local/share/mysql/polish/errmsg.sys -- Installing: /usr/local/share/mysql/ukrainian -- Installing: /usr/local/share/mysql/ukrainian/errmsg.sys -- Installing: /usr/local/share/mysql/japanese -- Installing: /usr/local/share/mysql/japanese/errmsg.sys -- Installing: /usr/local/share/mysql/portuguese -- Installing: /usr/local/share/mysql/portuguese/errmsg.sys -- Installing: /usr/local/share/mysql/romanian -- Installing: /usr/local/share/mysql/romanian/errmsg.sys -- Installing: /usr/local/share/mysql/estonian -- Installing: /usr/local/share/mysql/estonian/errmsg.sys -- Installing: /usr/local/share/mysql/korean -- Installing: /usr/local/share/mysql/korean/errmsg.sys -- Installing: /usr/local/share/mysql/russian -- Installing: /usr/local/share/mysql/russian/errmsg.sys -- Installing: /usr/local/share/mysql/czech -- Installing: /usr/local/share/mysql/czech/errmsg.sys -- Installing: /usr/local/share/mysql/french -- Installing: /usr/local/share/mysql/french/errmsg.sys -- Installing: /usr/local/share/mysql/serbian -- Installing: /usr/local/share/mysql/serbian/errmsg.sys -- Installing: /usr/local/share/mysql/charsets -- Installing: /usr/local/share/mysql/charsets/hebrew.xml -- Installing: /usr/local/share/mysql/charsets/cp852.xml -- Installing: /usr/local/share/mysql/charsets/ascii.xml -- Installing: /usr/local/share/mysql/charsets/swe7.xml -- Installing: /usr/local/share/mysql/charsets/cp866.xml -- Installing: /usr/local/share/mysql/charsets/latin2.xml -- Installing: /usr/local/share/mysql/charsets/latin5.xml -- Installing: /usr/local/share/mysql/charsets/hp8.xml -- Installing: /usr/local/share/mysql/charsets/geostd8.xml -- Installing: /usr/local/share/mysql/charsets/dec8.xml -- Installing: /usr/local/share/mysql/charsets/greek.xml -- Installing: /usr/local/share/mysql/charsets/koi8u.xml -- Installing: /usr/local/share/mysql/charsets/armscii8.xml -- Installing: /usr/local/share/mysql/charsets/koi8r.xml -- Installing: /usr/local/share/mysql/charsets/cp850.xml -- Installing: /usr/local/share/mysql/charsets/macroman.xml -- Installing: /usr/local/share/mysql/charsets/cp1250.xml -- Installing: /usr/local/share/mysql/charsets/Index.xml -- Installing: /usr/local/share/mysql/charsets/cp1257.xml -- Installing: /usr/local/share/mysql/charsets/latin1.xml -- Installing: /usr/local/share/mysql/charsets/keybcs2.xml -- Installing: /usr/local/share/mysql/charsets/cp1256.xml -- Installing: /usr/local/share/mysql/charsets/latin7.xml -- Installing: /usr/local/share/mysql/charsets/cp1251.xml -- Installing: /usr/local/share/mysql/charsets/README -- Installing: /usr/local/share/mysql/charsets/macce.xml -- Installing: /usr/local/share/mysql/errmsg-utf8.txt -- Installing: /usr/local/lib/mysql/libmysqld.a -- Installing: /usr/local/share/mysql/my-huge.cnf -- Installing: /usr/local/share/mysql/my-innodb-heavy-4G.cnf -- Installing: /usr/local/share/mysql/my-large.cnf -- Installing: /usr/local/share/mysql/my-medium.cnf -- Installing: /usr/local/share/mysql/my-small.cnf -- Installing: /usr/local/share/mysql/mysqld_multi.server -- Installing: /usr/local/share/mysql/mysql-log-rotate -- Installing: /usr/local/share/mysql/binary-configure -- Installing: /usr/local/share/mysql/config.medium.ini -- Installing: /usr/local/share/mysql/config.small.ini -- Installing: /usr/local/share/mysql/config.huge.ini -- Installing: /usr/local/share/mysql/ndb-config-2-node.ini -- Installing: /usr/local/share/mysql/magic -- Installing: /usr/local/share/mysql/mysql.server -- Installing: /usr/local/share/mysql/mysql_system_tables.sql -- Installing: /usr/local/share/mysql/mysql_system_tables_data.sql -- Installing: /usr/local/share/mysql/fill_help_tables.sql -- Installing: /usr/local/share/mysql/mysql_test_data_timezone.sql -- Installing: /usr/local/bin/mysqlbug -- Installing: /usr/local/bin/mysql_install_db -- Installing: /usr/local/bin/mysql_fix_extensions -- Installing: /usr/local/bin/mysql_setpermission -- Installing: /usr/local/bin/mysql_secure_installation -- Installing: /usr/local/bin/mysql_zap -- Installing: /usr/local/bin/mysql_convert_table_format -- Installing: /usr/local/bin/mysqlhotcopy -- Installing: /usr/local/bin/mysqldumpslow -- Installing: /usr/local/bin/mysqld_multi -- Installing: /usr/local/bin/mysqld_safe -- Installing: /usr/local/man/man1/my_print_defaults.1 -- Installing: /usr/local/man/man1/myisam_ftdump.1 -- Installing: /usr/local/man/man1/myisamchk.1 -- Installing: /usr/local/man/man1/myisamlog.1 -- Installing: /usr/local/man/man1/myisampack.1 -- Installing: /usr/local/man/man1/mysql.server.1 -- Installing: /usr/local/man/man1/mysql_convert_table_format.1 -- Installing: /usr/local/man/man1/mysql_fix_extensions.1 -- Installing: /usr/local/man/man1/mysql_install_db.1 -- Installing: /usr/local/man/man1/mysql_plugin.1 -- Installing: /usr/local/man/man1/mysql_secure_installation.1 -- Installing: /usr/local/man/man1/mysql_setpermission.1 -- Installing: /usr/local/man/man1/mysql_tzinfo_to_sql.1 -- Installing: /usr/local/man/man1/mysql_upgrade.1 -- Installing: /usr/local/man/man1/mysql_zap.1 -- Installing: /usr/local/man/man1/mysqlbug.1 -- Installing: /usr/local/man/man1/mysqld_multi.1 -- Installing: /usr/local/man/man1/mysqld_safe.1 -- Installing: /usr/local/man/man1/mysqldumpslow.1 -- Installing: /usr/local/man/man1/mysqlhotcopy.1 -- Installing: /usr/local/man/man1/mysqlman.1 -- Installing: /usr/local/man/man1/mysqltest.1 -- Installing: /usr/local/man/man1/perror.1 -- Installing: /usr/local/man/man1/replace.1 -- Installing: /usr/local/man/man1/resolve_stack_dump.1 -- Installing: /usr/local/man/man1/resolveip.1 -- Installing: /usr/local/man/man8/mysqld.8 ===> Staging rc.d startup script(s) ************************************************************************ Remember to run mysql_upgrade the first time you start the MySQL server after an upgrade from an earlier version. ************************************************************************ install-info --quiet /usr/local/info/mysql.info /usr/local/info/dir ===> Compressing manual pages for mysql55-server-5.5.34 ===> Registering installation for mysql55-server-5.5.34 pkg-static: unknown keyword stopdaemon, ignoring @stopdaemon Installing mysql55-server-5.5.34... done ===> SECURITY REPORT: This port has installed the following files which may act as network servers and may therefore pose a remote security risk to the system. /usr/local/libexec/mysqld This port has installed the following startup scripts which may cause these network services to be started at boot time. /usr/local/etc/rc.d/mysql-server If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.mysql.com/ |
1 2 3 |
root@vhost:/usr/ports/databases/mysql55-server # make clean ===> Cleaning for mysql55-client-5.5.34 ===> Cleaning for mysql55-server-5.5.34 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
root@vhost:/usr/ports/databases/mysql55-server # echo 'mysql_enable="YES"' >> /etc/rc.conf root@vhost:/usr/ports/databases/mysql55-server # cat /etc/rc.conf portmap_enable="NO" sshd_enable="YES" sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" hostname="vhost" devfs_enable="YES" devfs_system_ruleset="devfsrules_common" nginx_enable="YES" mysql_enable="YES" |