部署論壇Discuz 和 Memcache
Discuz:
309 unzip Discuz_X3.2_SC_UTF8.zip ####解壓論壇包
310 yum install unzip -y ###下載解壓軟件
311 unzip Discuz_X3.2_SC_UTF8.zip
312 ls
313 cdreadme/
314 ls
315 cd
321 mv upload/ /usr/local/lnmp/nginx/html/bbs
328 cd/ usr/local/lnmp/nginx/html/bbs/
329 ls
331 chmod 777 config/ data/ uc_server/ uc_client/ -R
測試出現如圖問題:
337 cd
338 cd/usr/local/lnmp/php/ ###解決問題
339 cdetc/
340 ls
341 vim php.ini
如圖:
342 /etc/init.d/php-fpm reload
測試出現如圖問題:
343 cd/usr/local
344 cdlnmp/mysql/
345 ll
346 cddata
347 ls
348 llmysql.sock
349 ll-d /usr/local/lnmp/mysql/data/
350 chmod 755 /usr/local/lnmp/mysql/data/ ####出現權限問題解決辦法
351 ll-d /usr/local/lnmp/mysql/data/
352 cd
353 cd/usr/local/lnmp/nginx/
354 cdhtml/
355 cdbbs
356 ls
357 cdinstall
358 ls
359 rm -fr index.php ####防止下次訪問進入安裝頁面
測試結果:
PHP+Memcache
Memcache:
363 php -m | grep memcached ###查看有沒有memcache安裝包
364 tar zxf memcache-2.2.5.tgz
365 ls
366 cd memcache-2.2.5
367 phpize ####一定要執行
368 which phpize
369 ./configure ###添加功能
375 make #編譯
376 make install ###安裝
383 cd/usr/local
384 cd lnmp/php
385 cd etc
387 pwd
388 ls
389 vim php.ini
如圖:
來源;
[[email protected] memcache-2.2.5]# cd/usr/local/lnmp/php/lib/php/extensions/no-debug-non-zts-20131226/
[[email protected] no-debug-non-zts-20131226]#ls
memcache.so opcache.a opcache.so
390 /etc/init.d/php-fpm reload
391 php -m | grep memcache
392 vim php.ini
393 rpm -qa | grep php
394 cd
395 cdmemcache-2.2.5
398 yum install -y memcached
400 /etc/init.d/memcached start
401 yum install -y telnet
402 telnet localhost 11211
404 cpexample.php /usr/local/lnmp/nginx/html/
406 cpmemcache.php /usr/local/lnmp/nginx/html/
407 cd/usr/local/lnmp/nginx/html/
408 ls
409 vim memcache.php
截圖:
測試:
部署論壇Discuz 和 Memcache