軟件介紹:
gcc:gcc編譯器
gcc-c++:c++編譯器
autoconf:autoconf是一個工具,用于生成shell腳本,通過執(zhí)行腳本可生成makefile
libjpeg:JPEG 圖像壓縮庫,采用 C 語言開發(fā)
libpng:libpng是多種應用程序使用的解析PNG圖象格式的庫
freetype:freetype庫是一個完全免費(開源)的、高質(zhì)量的且可移植的字體引擎,它提供統(tǒng)
的接口來訪問多種字體格式文件
libxml2:libxml2 是一個xml c語言版的解析器
zlib:zlib是提供數(shù)據(jù)壓縮用的函式庫
glibc:glibc 是gnu發(fā)布的libc庫,也即c運行庫
glib2:GLib2 provides data structure handling for C, portability wrappers, and interfaces for
such runtime functionality as an event loop, threads, dynamic loading, and an object system
bzip2:bzip2 是一個基于Burrows-Wheeler 變換的無損壓縮軟件
ncurses:ncurses是一個能提供基于文本終端窗口功能的動態(tài)庫
curl:curl是一個利用URL語法在命令行方式下工作的文件傳輸工具
e2fsprogs:維護ext2,ext3和ext4文件系統(tǒng)的工具程序集
libidn:GNU Libidn is an implementation of the Stringprep
openssl:openssl是套開放原始碼的SSL套件
注:-devel是開發(fā)包
mysql的設置
設置mysql超級用戶root的密碼:
mysqladmin –u root password ‘123456’ #密碼是123456
mysql –u root –p123456 #以root的身份登入mysql,-p123456不能有空格
創(chuàng)建一個數(shù)據(jù)庫給wordpress使用:
create database wordpress; #注意最后的“;”是必須的
show databases; #查看是否有wordpress數(shù)據(jù)庫
創(chuàng)建一個mysql用戶wordpress可以從任何地方登陸使用wordpress數(shù)據(jù)庫:
grant all privileges on wordpress.* to ‘wordpress’@’localhost’ identified by ‘123456’
#本地登入mysql的賬戶wordpress 密碼為123456
grant all privileges on wordpress.* to ‘wordpress’@’localhost’ identified by ‘123456’
#可以從其他機子登入mysql的賬戶wordpress密碼為123456
安裝wordpress
下載到/var/www/html/目錄下
tar xvf wordpress-2.8.5-zh_CN.tar.gz
cd wordpress
cp wp-config-sample.php wp-config.php
vi wp-config.php
define('DB_NAME', 'wordpress'); #wordpress是數(shù)據(jù)庫名字
define('DB_USER', 'word'); #wordpress是mysql用戶
define('DB_PASSWORD', '123456'); #123456是wordpress用戶的密碼
define('DB_HOST', '192.168.1.200'); #最好使用IP