當前位置:首頁 » 操作系統 » discuzlinux安裝

discuzlinux安裝

發布時間: 2022-08-10 22:31:24

❶ win2019discuz搭建

win2019discuz搭建需要安裝php、MYsql
要搭建 Discuz! X 站點,伺服器必須安裝由 PHP、MySQL、Apache/IIS/Nginx 構成的環境。
其中,IIS 主要用於 Windows 伺服器,Apache、Nginx 多用於 linux 伺服器(即 LAMP 和 LNMP)。
在我們國內,有兩大著名的BBS 論壇模板系統,都是使用PHP語言開發的。
其中一個叫 PHPwind ,簡稱 PW 被阿里收購
另外一個是 Discuz! ,簡稱DZ 被騰訊收購。
Discuz! X 是一款以 PHP 為編程語言,以 MySQL 為資料庫,並使用 Apache/IIS/Nginx(任意一種即可) 提供 web 服務的產品。

❷ Linux下如何安裝Discuz

xampp 包可以,但默認配置為本地測試用的,不適合做伺服器。如果要作伺服器用,還是老老實實一步一步的編譯安裝吧。

❸ linux下apache2搭建discuz問題

1.[root@linux ~]# mkdir /mnt/cdrom
2.[root@linux ~]# mount /dev/cdrom /mnt/cdrom
這是在Windows下使用VMware虛擬機運行Linux的。
先在把RHEL5.3的ISO鏡像文件載入到虛擬機的光碟機,然後才執行mount命令。

3.[root@linux ~]# vi /etc/yum.repos.d/rhel-debuginfo.repo
原來:
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever – $basearch – Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

改成:(把原來的baseurl注釋掉,在baseurl前面添加#,新添加baseurl=file:///mnt/cdrom/Server,並把enabled=0修改成enabled=1。)
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever – $basearch – Debug
#baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

4.[root@linux ~]# yum clean all
5.[root@linux ~]# yum list
6.[root@linux ~]# yum grouplist 顯示軟體的安裝包組。
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Group Process
rhel-debuginfo/group | 1.0 MB 00:00
Installed Groups:
Administration Tools
Editors
Legacy Network Server
Mail Server
Network Servers
Server Configuration Tools
Sound and Video
System Tools
Available Groups:
Authoring and Publishing
DNS Name Server
Development Libraries
Development Tools
Engineering and Scientific
FTP Server
GNOME Desktop Environment
GNOME Software Development
Games and Entertainment
Graphical Internet
Graphics
Java Development
KDE (K Desktop Environment)
KDE Software Development
Legacy Software Development
Legacy Software Support
MySQL Database
News Server
Office/Proctivity
OpenFabrics Enterprise Distribution
PostgreSQL Database
Printing Support
Text-based Internet
Web Server
Windows File Server
X Software Development
X Window System
Done
7.[root@linux ~]# yum groupinstall -y 「MySQL Database」 安裝MySQL。
8.[root@linux ~]# yum grouplist
9.[root@linux ~]# yum groupinstall -y 「Web Server」
成功安裝「MySQL Database」和「Web Server」之後,接著還需要安裝php-mysql。
10.[root@linux ~]# yum list | grep php-* 把php相關的軟體包都列出來。
11.[root@linux ~]# cd /mnt/cdrom/Server 進入軟體包目錄。
12.安裝php-mysql,這里有個小技巧,就是輸入rpm –ivh php-mysql之後,按TAB鍵,來實現補全這個安裝包的名字。
[root@linux Server]# rpm -ivh php-mysql-5.1.6-23.2.el5_3.i386.rpm
error: Failed dependencies:
php-pdo is needed by php-mysql-5.1.6-23.2.el5_3.i386
13.出現錯誤需要php-pdo的依賴關系,需要把php-mysql和php-pdo兩個包同時裝上,這里也使用TAB鍵就可以補全軟體包長長的名字。
[root@linux Server]# rpm -ivh php-mysql-5.1.6-23.2.el5_3.i386.rpm php-pdo-5.1.6-23.2.el5_3.i386.rpm
Preparing… ########################################### [100%]
1:php-pdo ########################################### [ 50%]
2:php-mysql ########################################### [100%]
14.[root@linux Server]# service mysqld start 啟動mysql,注意是mysqld,多一個字母d的。
15.[root@linux Server]# netstat -antupl | grep 3306 查看mysql狀態
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 4581/mysqld
16.[root@linux Server]# service httpd start 啟動http,注意是httpd,多一個字母d的。
Starting httpd: [ OK ]
17.開啟mysql和http在運行級別為3、4、5的時候開機後自動啟動服務(注意mysql和mysqld,http和httpd,都多一個d字母的!)
[root@linux Server]# chkconfig —level 345 mysqld on ( level前面兩個「-」減號的)
[root@linux Server]# chkconfig —level 345 httpd on
18.我把論壇的zip壓縮包Discuz_X1.5_SC_UTF8.zip放在了/root目錄,所以回到root的用戶目錄,把壓縮包解壓出來。
[root@linux ~]# unzip Discuz_X1.5_SC_UTF8.zip
[root@linux ~]# ls
anaconda-ks.cfg Discuz_X1.5_SC_UTF8.zip install.log.syslog upload
bbs install.log readme utility
解壓出來得到一個upload文件夾,把upload裡面的文件都移到/var/www/html/目錄。
19.[root@linux ~]# mv upload/* /var/www/html/
[root@linux ~]# ls /var/www/html
admin.php crossdomain.xml home.php plugin.php static
api data index.php portal.php template
api.php favicon.ico install robots.txt uc_client
config forum.php member.php search.php uc_server
cp.php group.php misc.php source userapp.php
20.[root@linux ~]# chmod -R 777 /var/www/html/ 給論壇的所有文件都添加可讀可寫可執行的許可權(注意:這里我是為了方便,把論壇的所有文件何目錄都設成777是不科學的,實際情況並不需要全部777,把/config/、/data/、/uc_client/data、/uc_server/data設置成777就可以了)
[root@linux ~]# ls -l /var/www/html
total 104
-rwxrwxrwx 1 root root 2413 Oct 20 16:15 admin.php
drwxrwxrwx 7 root root 4096 Oct 20 16:15 api
-rwxrwxrwx 1 root root 741 Oct 20 16:15 api.php
……………..
21.[root@linux ~]# mysqladmin -u root password 123456 設置mysql的root用戶密碼為123456
22.[root@linux ~]# mysql -u root -p
Enter password: (這里輸入你設置的密碼,輸入是看不見的)
Welcome to the MySQL monitor. Commands end with ; or \g.
已經進入mysql了
mysql> grant all on *.* to root@」%」 identified by 「123456」; 授權,允許root用戶使用密碼123456訪問資料庫。
23.剩下安裝論壇的操作在瀏覽器下完成,用瀏覽器打開linux伺服器的ip地址,以下就看圖了。

(2)上一步選擇「同意」後,出現「安裝向導」,上圖為第一步的「開始安裝」。看到沒有,上面都有「綠色」的勾,如果當初沒有執行 chmod –R 777 /var/www/html/ 的話,這里就會是「紅色」的叉了。選擇「下一步」繼續。

(3)安裝向導的第二步,選擇「全新安裝Discuz!X」,當然也可以選擇「僅安裝Discuz!X」。「下一步」繼續。

(4)看上圖,只需修改用紅圈圈起來的那幾項。「下一步」繼續。

(5)到了最後一步了。「聯系方式」。「提交」。

(6)完成,上圖所示。論壇安裝完成了。
24.登錄論壇。
成功登錄。那麼,整個搭建到安裝就完成了。

❹ linux伺服器下安裝discuz,顯示目錄,文件許可權檢查不可寫怎麼整

登錄主機,將哪幾個不可寫的目錄賦個許可權
chmod -R 755 目錄名

❺ 關於LinuxCentos 安裝discuzGBK亂碼的求助

這個現象是伺服器不支持中文編碼所致, 修改config.inc.php 中的 $headercharset = 1 即可。 但使用該功能可能會影響到附件下載等功能。

❻ linux平台下nginx環境,安裝discuz X3.2,怎麼設置偽靜態求大神指點

Discuz X:
在 nginx下的配置文件nginx.conf添加

location / {
rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;

rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$
$1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3
last;
rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
rewrite ^([^\.]*)/([a-z]+)-(.+)\.html$ $1/$2.php?rewrite=$3 last;
if (!-e $request_filename) {
return 404;
}
}
正則表達式可以用相應的版本在後台偽靜態設置里獲取apache

❼ linux下安裝discuz時mysql_connect() 不支持 請檢查 mysql 模塊是否正確載入

改資料庫的配置文件,將資料庫指向遠程的機器。

// 資料庫 主機名 或 IP 地址,如資料庫埠不是3306,請在 主機名 或 IP 地址後添加「:具體埠」,如您的主機是localhost,埠是3307,則更改為「localhost:3307」

一般把localhost更改成遠程資料庫伺服器地址即可

❽ 網上下載的discuz源碼Discuz_X2.5_SC_UTF8.zip能在linux上解壓安裝嗎我是說.zip文件liunx能解壓嗎

linux伺服器上是可以解壓.zip的文件的

❾ linux下安裝discuz!許可權檢查過不去。。求高人

777都搞不懂? :(
每個文件都有針對三類用戶的許可權,分別是用戶自己(第一個7), 同組用戶(第二個7), 其他用戶(第三個7).
每個許可權用三個bits控制讀,寫,運行許可權, 1表示有此許可權,0表示無此許可權.
7 --> 111
|||--->運行許可權
||-----------> 寫許可權
|-------------->讀許可權
所以, 一個文件如果它的許可權是777, 代表任何用戶都可以讀寫運行這個文件.
btw, 777是不安全的許可權設置, 755 比較常見.
隨便找本linux的書,都會將這個, 這個是unix/linux的基本知識.

熱點內容
紅米刷機為什麼要密碼 發布:2024-04-23 17:52:30 瀏覽:668
雲伺服器一般干什麼 發布:2024-04-23 17:44:43 瀏覽:218
java視頻入門 發布:2024-04-23 17:35:47 瀏覽:484
斯坦福大學編程範式 發布:2024-04-23 17:34:51 瀏覽:743
天賜良緣1期門禁密碼是多少 發布:2024-04-23 17:22:26 瀏覽:310
引流腳本什麼意思 發布:2024-04-23 17:16:49 瀏覽:396
江叔常用的密碼是多少 發布:2024-04-23 17:11:54 瀏覽:595
內存儲存公司股票 發布:2024-04-23 16:57:16 瀏覽:929
linuxrootkit 發布:2024-04-23 16:56:37 瀏覽:325
線索一這廁所的密碼是多少 發布:2024-04-23 16:48:44 瀏覽:574