亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

RedHat5.4搭建Discuz論壇系統

發布時間:2020-06-23 08:32:04 來源:網絡 閱讀:475 作者:單成剛 欄目:移動開發

Redhat 5.4搭建Discuz論壇系統
一:環境: redhat5.4 32位系統
二:操作系統安裝請參考(yourmail系統安裝文件)
三:系統底層架構: LAMP平臺
LAMP+phpMyAadmin+discuz
四:實施步驟

______________________________________________________________________________
1:1檢查Discuz系統所需的依賴包,軟件包在系統盤去找即可。
libtermcap-2.0.8-46.1.i386.rpm
libtermcap-devel-2.0.8-46.1.i386.rpm
libxml2-2.6.26-2.1.2.8.i386.rpm
libxml2-devel-2.6.26-2.1.2.8.i386.rpm
libxml2-python-2.6.26-2.1.2.8.i386.rpm
openssl-0.9.8e-12.el5.i386.rpm
openssl-0.9.8e-12.el5.i686.rpm
openssl-devel-0.9.8e-12.el5.i386.rpm
openssl-perl-0.9.8e-12.el5.i386.rpm
glib-1.2.10-20.el5.i386.rpm
gd-progs-2.0.33-9.4.el5_1.1.i386.rpm
gdm-docs-2.16.0-56.el5.i386.rpm
gdk-pixbuf-0.22.0-25.el5.i386.rpm
gdk-pixbuf-devel-0.22.0-25.el5.i386.rpm
gtk+-1.2.10-56.el5.i386.rpm
gtk+-devel-1.2.10-56.el5.i386.rpm
lm_sensors-2.10.7-4.el5.rpm
net-snmp-libs-5.3.2.2-7.el5.rpm
net-snmp-utils-5.3.2.2-7.el5.rpm
net-snmp-5.3.2.2-7.el5.rpm
freeradius-1.1.3-1.4.el5.rpm
freeradius-mysql-1.1.3-1.4.el5.rpm
libtool-ltdl-devel-1.5.22-6.1.i386.rpm
gamin-devel-0.1.7-8.el5.i386.rpm
expect-5.43.0-5.1.i386.rpm
expect-devel-5.43.0-5.1.i386.rpm
pcre-devel-6.6-2.el5_1.7.i386.rpm

______________________________________________________________________________
1:2 apache
rpm -e httpd --nodeps
tar -zxvf httpd-2.2.15.tar.gz -C /usr/src
cd /usr/src/httpd-2.2.15
配置
./configure --prefix=/usr/local/http --enable-rewrite --enable-so --enable-auth-digest --enable-cgi --with-ssl=/usr/lib --enable-ssl --enable-suexec --with-suexec-docroot=/usr/local/http/htdocs 
編譯安裝
make && make install
cd /usr/local/http/bin
vim apachectl        添加如下
#! /bin/sh
# chkconfig: 35 85 15
# description: Apache is a World Wide Web Server

cp /usr/local/http/bin/apachectl /etc/init.d/httpd
chmod o+x /etc/init.d/httpd
chkconfig --add httpd
chkconfig httpd on
配置apache 用戶和屬組
useradd -M -s /sbin/nologin postfix
cd /usr/local/http/conf/
vim httpd.conf
User postfix
Group postfix
啟動apache
service httpd start
http://localhost
______________________________________________________________________________
1.3 mysql
rpm -e mysql –nodeps
userdel -r mysql
useradd -M -s /sbin/nologin mysql
tar -zxvf mysql-5.1.44.tar.gz -C /usr/src/
cd /usr/src/mysql-5.1.44/
./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql --enable-thread-safe-client  --enable-local-infile --with-charset=gbk --with-low-memory
Make
Make install
cp support-files/my-medium.cnf /etc/my.cnf
/usr/local/mysql/bin/mysql_install_db --user=mysql
chown -R root:mysql /usr/local/mysql/
chown -R mysql /usr/local/mysql/var/
echo "/usr/local/mysql/lib/mysql" >> /etc/ld.so.conf
ldconfig
/usr/local/mysql/bin/mysqld_safe --user=mysql &
查看進程
ps -ef | grep mysqld_safe
root      6315  4638  0 18:44 pts/2    00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
是否開啟3306端口
netstat -ntulp | grep mysql
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      6414/mysqld   
    
cp support-files/mysql.server /etc/init.d/mysqld
chmod +x /etc/init.d/mysqld
chkconfig --add mysqld
chkconfig mysqld on
export PATH=$PATH:/usr/local/mysql/bin/
echo "PATH=$PATH:/usr/local/mysql/bin/" >> /etc/profile
mysqladmin -u root password 123456
mysql -u root –p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.44-log Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> quit
______________________________________________________________________________
1:4 PHP
安裝libmcrypt mhash mcrypt解決無法加載mcrypt
(1)
tar -zxvf libmcrypt-2.5.8.tar.gz -C /usr/src/
cd /usr/src/libmcrypt-2.5.8/
./configure
Make
Make install
echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig
(2)
tar -zxvf mhash-0.9.9.9.tar.gz -C /usr/src/
cd /usr/src/mhash-0.9.9.9/
./configure
Make
Make install
(3)
tar -zxvf mcrypt-2.6.8.tar.gz -C /usr/src/
cd /usr/src/mcrypt-2.6.8/
LD_LIBRARY_PATH=/usr/local/lib ./configure
Make
Make install

rpm -e php --nodeps
tar -zxvf php-5.2.13.tar.gz -C /usr/src
cd /usr/src/php-5.2.13
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/http/bin/apxs --with-config-file-path=/usr/local/php --with-gd --with-freetype-dir --with-mysql=/usr/local/mysql --enable-sockets --enable-mbstring --with-jpeg-dir --with-png-dir --disable-json --with-zlib --with-mysqli --with-mcrypt
make
make install
cp php.ini-dist /usr/local/php/php.ini
vim /usr/local/http/conf/httpd.conf     啟用php模塊
53 LoadModulephp5_module                   modules/libphp5.so                                                                                 
54 AddType application/x-httpd-php .php                                      
167<IfModuledir_module>
168       DirectoryIndexindex.phpindex.html                                  
169</IfModule>

vim /usr/local/http/htdocs/index.php           
<?php
          phpinfo();
?>
service apache stop     關閉
service apache start    啟動
http://localhost
______________________________________________________________________________
1:5 phpMyAdmin數據庫管理軟件
unzip phpMyAdmin-3.3.1-all-languages.zip -d /usr/local/http/htdocs/
cd /usr/local/http/htdocs/
mv phpMyAdmin-3.3.1-all-languages myadmin
cd phpMyAdmin/
cp config.sample.inc.php config.inc.php
vim config.inc.php
18 $cfg['blowfish_secret'] = '123456'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
service httpd stop
service httpd start
http://localhost/myadmin
______________________________________________________________________________
1:6 架設Discuz論壇
mysql -u root –p
create database bbsdb;
grant all on bbsdb.* to runbbs@localhost identified by '123456';
unzip Discuz_7.2_FULL_SC_UTF8.zip -d discus
mv discus/upload /usr/local/http/htdocs/bbs
cd /usr/local/http/htdocs/bbs/
chown -R postfix config.inc.php p_w_uploads/ forumdata/  uc_client/data/cache/ 
訪問以下地址
http://localhost/bbs/install/

cd /usr/local/http/htdocs/bbs/
mv install/ install.lock
chmod o-rx install.lock/
訪問bbs前臺:http://localhost/bbs/
訪問bbs后臺:http://localhost/bbs/admincp.php

 

為了技術方面交流歡迎加入QQ:1464251539

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

襄汾县| 比如县| 内黄县| 博爱县| 弥渡县| 报价| 故城县| 中方县| 赤水市| 永胜县| 昭苏县| 甘谷县| 奇台县| 玉屏| 策勒县| 思茅市| 兖州市| 保靖县| 义乌市| 任丘市| 汕头市| 娄烦县| 青阳县| 泾阳县| 同仁县| 东明县| 古田县| 红安县| 雷州市| 仪征市| 武陟县| 四会市| 新化县| 上思县| 云林县| 和田县| 兴海县| 兴业县| 黔西| 镇坪县| 鸡西市|