In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
[root@ajing ~] # mkdir / data/www
[root@ajing ~] # cd / data/www
[root@ajing www] # wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_GBK.zip
[root@ajing www] # unzip Discuz_X3.2_SC_GBK.zip / / decompress
[root@ajing www] # ls
Discuz_X3.2_SC_GBK.zip readme upload utility / / programs are stored in the upload directory
[root@ajing www] # mv upload/*. / (remove all the files from the upload directory)
[root@ajing www] # rm-rf readme/ utility/ upload/ Discuz_X3.2_SC_GBK.zip / / delete the redundant directories
/ / check whether apache is started. The following figure shows that it is not started.
/ / start configuring the virtual host below:
Press the ESC key, press the / key, type vhosts, / / search for this file.
/ / remove the # from the configuration file of the virtual host in the extra directory under the conf directory
Include conf/extra/httpd-vhosts.conf
/ / Press esc,:wq to save exit
/ / this file has been loaded effectively.
/ / Edit virtual host configuration file
Edit it as shown below:
Check to see if the file is wrong
[root@ajing www] # / usr/local/apache2/bin/apachectl-t
Syntax OK
Vim / usr/local/apache2/conf/httpd.conf
/ ServerName / / search for this file
ServerName www.example.com:80 / / remove the # and save to exit ok.
/ / configure hosts file (parse the meaning of ip,dns service)
[root@ajing www] # vim / etc/hosts
/ / ping Baidu, effective locally.
Find the hosts file under windows and edit 192.168.1.105 www.test.com www.aaa.com to save and exit.
[root@ajing www] # vim / usr/local/apache2/conf/httpd.conf
/ / change it to the following figure:
[root@ajing www] # / usr/local/apache2/bin/apachectl-t
Syntax OK
[root@ajing www] # / usr/local/apache2/bin/apachectl restart
[root@ajing www] #
/ / run www.test.com in ie figure 1
Figure 2:
Figure 3:
/ / indicates that apache runs as the daemon user
[root@ajing www] # chown-R daemon config data uc_client/data uc_server/data / / the permissions of this directory file are changed to writable state
[root@ajing www] #
/ / just refresh the ie.
/ / next step
/ / install it for the first time, just go to the next step.
/ / configure the database:
[root@ajing /] # whereis mysql / / find the previously configured mysql path
Mysql: / usr/lib64/mysql / usr/local/mysql / usr/share/mysql
[root@ajing /] # rpm-qa | grep mysql* / / View mysql package name
Mysql-libs-5.1.73-5.el6_6.x86_64
[root@ajing /] # yum remove mysql / / Uninstall the previously configured mysql because discuz comes with its own database
/ / if you want to use mysql directly, you need to edit the environment variable.
[root@ajing www] # mysql
-bash: mysql: command not found
[root@ajing www] # vim / etc/profile.d/path.sh
/ / the editing content is as follows:
[root@ajing www] # source! $
Source / etc/profile.d/path.sh
[root@ajing www] # mysql
Welcome to the MySQL monitor. Commands end with; or\ g.
Your MySQL connection id is 6
Server version: 5.1.73 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
Affiliates. Other names may be trademarks of their respective
Owners.
Type 'help;' or'\ h' for help. Type'\ c'to clear the current input statement.
Mysql > quit
Bye
[root@ajing www] # which mysql
/ usr/local/mysql/bin/mysql
[root@ajing www] # mysql
Welcome to the MySQL monitor. Commands end with; or\ g.
Your MySQL connection id is 7
Server version: 5.1.73 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
Affiliates. Other names may be trademarks of their respective
Owners.
Type 'help;' or'\ h' for help. Type'\ c'to clear the current input statement.
Mysql > create database discuz; / / create the database
Query OK, 1 row affected (0.04 sec)
Mysql > grant all on discuz.* to 'ajing'@'localhost' identified by' ajing'; / / create a user and password for the library
Query OK, 0 rows affected (0.06 sec)
Mysql >
/ / after the above parameters are configured with ok, edit the database information. As shown below: (here the administrator password is 123456)
/ / next, after processing, it is shown below:
Click on your forum to complete the installation, click here to visit
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.