title: Linux build Discuz forum
Welcome to Fofade's Blog!
Here are some Linux command set up forums records
Command excerpt:
Download file: Discuz
Installation Environment: PHP Apache2 Mariadb (like MySQL) PHP-XML
Test environment: tomcat browser to view the page is normal, and write a simple PHP page test
Database operations:
- Create a user
$ create user 'name'@'statu' identified by 'psw';
- Create a database
$ create database databasename;
- Database authorization
$ grant all on databasename.* to user@localhost; $ grant all on * to user@localhost identified by 'psw' with grant option;
- delete users
$ drop user username;
- View database
$ show database;
- View user
$ select host,user from mysql.user;
- Decompression Discuz:
$ unzip Discuz.zip
- Packaging upload folder:
$ tar czvf upload.tar.gz *
- With permission to copy the file into the package under / var / www / html / directory:
$ sudo cp upload.tar.gz /var/www/html/
- Unzip the file:
$ sudo tar xzvf upload.tar.gz
- Return to parent directory:
$ cd ../
- Weighted:
$ sudo chmod a+w -R html/ # 实际应用中不建议使用该方式加权,此处仅处于方便
- Browser access:
$ 127.0.0.1:80/index.html
- Installation: Follow the prompts to install
- Delete files: Finally, delete /var/www/html/install/index.html:
$ sudo rm /var/www/html/install/index.html