当前位置:首页 » 操作系统 » 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的基本知识.

热点内容
c语言求质因子 发布:2024-05-04 02:10:56 浏览:754
sqlserver无法启动 发布:2024-05-04 01:37:19 浏览:848
php使用正则 发布:2024-05-04 01:36:12 浏览:119
玉石密度算法 发布:2024-05-04 01:24:49 浏览:334
我的世界云服务器怎么样 发布:2024-05-04 01:20:01 浏览:22
androidsdk包含 发布:2024-05-04 00:45:54 浏览:209
android拷贝文件 发布:2024-05-04 00:38:28 浏览:777
存储冗余比 发布:2024-05-04 00:12:58 浏览:405
oracle数据库存储原理 发布:2024-05-04 00:10:40 浏览:524
未拆封玩客云3怎么搭建服务器 发布:2024-05-04 00:06:11 浏览:798