Some common commands and operations for Linux configuration Jforum __linux

Source: Internet
Author: User
Tags mysql client
ls to view all files and folders in the current directory, as shown in blue for the folder, white for file Ls-al View all files in the current directory, including subfolders below the file and folder CD into a folder, such as CD music, that goes into the Music folder CD. Go back to the previous directory CD/go to the root directory pwd view the current directory cp-rf/home/user1/*/root/temp/ Copy Everything under the/home/user1 directory to/root/temp/without copying the User1 directory itself. The format is: CP-RF original path/destination path/
Mysqld_safe--defaults-file=/data/my3306.cnf & Start the MySQL server, the following & means open again, the current terminal can also use PS aux | grep mysqld Check if there is a mysqld process in the process, that is, to see if MySQL starts Mysql-uroot--socket=/data/mysql3306/mysqld.sock starts the MySQL client into the MySQL client: show databases; View system all database quit exit database
Some commands to install Java sudo apt-get install default-jre sudo apt-get is a directive that requires administrator assignment, which can be installed on the system some software, large permissions, so need administrator allocation, Open this permission (JRE is Java running environment) sudo apt-get Update if there are errors after installation, use this command to renew the sudo apt-get install DEFAULT-JDK with the JRE installation, the JDK is the Java development environment Java-version to determine whether the Java environment is properly installed, the Java Runtime version of the information is installed as normal
Some of the commands for installing jforum wget http://jforum.net/jforum-2.1.9.zip Download Jforum-2.1.9.zip compressed packets from the network unzip Jforum-2.1.9.zip Decompression download of the Jforum installation package MV jforum-2.1.9 jforum transfer jforum-2.1.9 to Jforum, will be renamed jforum-2.1.9 folder Jforum
Some instructions about Tomcat Apt-get install TOMCAT7 installation tomcat7 sudo find/-name startup.sh under the root directory look for files whose names are startup.sh./shutdown.sh. /represents execution, which means that executing the SHUTDOWN.SH program sudo./startup.sh means execute startup.sh program sudo mkdir/usr/share/tomcat7/logs create this folder in the Run directory
Move Forum configuration into Tomcat Find/-name Server.xml Locate files in the root directory that are not server.xml sudo vim/etc/tomcat7/server.xml Open server.xml file for editing: Q Exit View Document page, return to command-line interface vim index.html open index.html file
Configure the database for Jforum, jforum to configure MySQL access ifconfig view native IP address mysql-uroot--socket=/data/mysql3306/mysqld.sock start MySQL Client Create Database Jforum; Create an Jforum database grant all on jforum.* to jforum@ ' native IP address ' identified by ' Jforum ' gives all the permissions to the Jforum database, ". *" to represent all the tables of the database, All tables to jforum users, sudo chmod-r 777 Jforum gives read-write access to Jforum database-R loop 777 to all users read-write permissions sudo find jforum ' * ' | Xargs grep-i ' Type=innodb ' Find all Files with Type=innodb ' fields under Jforum folder Vim Xxxx.sql for this kind of file exit use: Wq instruction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.