Summary of common commands

Check the usage of the process in Linux:
$ ps -ef
$ ps -aux
At this point, if I want to kill the Firefox process, I will type in the terminal:

$ kill -s 9 1827 //kill the process

Where -s 9 specifies that the signal passed to the process is 9, that is, to force the process to terminate as soon as possible. See the appendix for each termination signal and its function.

1827 is the PID of Firefox found by ps above.


rz upload file
unzip file.zip //Unzip the uploaded file in the directory

cp -r upload /ecshop //Copy the upload to eschop
in the root directory cd / //At this time, you will see an ecshop file in the root directory
cd ecshop
ll You can see the files in this project
cd /
ll ecshop
ll | grep ecshop/
chrown -R apache:apache ecshop //Change the owner to apache. If Apache is reported as an invalid user, create an Apache user with the same password as the user name
mkdir -m 777 /etc/httpd //In the etc directory Create the httpd subdirectory with the permission of 777
mkdir -m 777 /etc/httpd/conf.d //Create the conf.d subdirectory under the etc/httpd directory with the permission of 777
touch ecshop.conf //in the conf .d Create a file below
chomd -R 777 ecshop.conf //Set the content of the conf file: log location, permissions

vi ecshop.conf 

Write the script as follows:

Listen 83 //Set port 83
<VirtualHost *:83>
ServiceAdmin [email protected]
DocumentRoot /ecshop //The ecshop ErrorLog of the file in the root directory
/ecshop/log/ecshop/error_log //The location of the log display
CustomLog ecshop/log /access_log common
<Directory "/ecshop"> //Set permissions
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
</Directory>
</VirtualHost>
After saving, go back to the /ecshop directory to view the log file, if it does not exist, create a new log directory
mkdir log
ll | grep log //The owner of the log is still root
chown -R apache:apache log //Modify the log owner to Apache

yum is a package management tool for Redhat, Centos, Fedora and other systems. yum list is a list of all installable software packages, including installed and uninstalled ones.
yum list installed displays a list of installed packages. As for what is not installed, it can be distinguished by these two commands, and there seems to be no separate parameters.

Apache (httpd) installation, configuration, and service in Linuxhttp://blog.csdn.net/u010297957/article/details/50751656

What command does linux use to modify the directory name? How to change /home/abc to /home/abcd
Answer: The mv command can be used to move and rename directories or files, as follows: mv /home/abc /home/abcd
tar command usage in linux https://www.cnblogs. com/newcaoguo/p/5896975.html


mkdir usage:
directory: specifies a list of directories to be created, separated by spaces.

The instance
creates a subdirectory test under the directory /usr/meng, and only the file owner has read, write and execute permissions, others have no access

mkdir -m 700 /usr/meng/test
Create bin and os_1 directories under bin in the current directory. The permissions are set to read, write, and execute the main file. Users in the same group can read and execute. Other users have no access.

mkdir -p-m 750 bin/os_1

Make: It means the compilation process, and it exists in the cache at the same time. When executing make install, it is the real installation.
For example: I need to install a libxml2-2.6.30 package.
Unzip: tar -zxvf libxml2-2.6.30
Enter the directory: cd /lamp/ libxml2-2.6.30
installation specified path: ./configure --prefix=/usr/local/libxml2/
Compile: make
install: make install

 

#Check where the file is first: find / -name httpd.conf

The command used is: netstat -apn|grep 8081 This command mainly depends on whether 8081 has a program listening

How to uninstall rpm package

Use the command rpm -e package name. The package name can contain information such as the version number, but cannot have the suffix .rpm. For example, to uninstall the package proftpd-1.2.8-1, the following format can be used:

rpm -e proftpd-1.2.8-1
rpm -e proftpd-1.2.8
rpm -e proftpd-
rpm -e proftpd

Step 2: Check whether the 4 packages required for manual compilation are installed


[root@xuegod63 ~]# rpm -q gcc

gcc-4.4.7-4.el6.x86_64

[root@xuegod63 ~]# rpm -q gcc-c++

gcc-c++-4.4.7-4.el6.x86_64

[root@xuegod63 ~]# rpm -q make

make-3.81-20.el6.x86_64

[root@xuegod63 ~]# yum install pcre-devel -y

 


1. Those rpm packages are installed in my system.

rpm -qa talks about listing all installed packages.
If you want to find all installed packages that contain a certain string sql

rpm -qa | grep sql
2. How to get the full file name of a software package.

rpm -q mysql
can obtain the full name of the mysql package installed in the system, from which information such as the version of the current package can be obtained. In this example you can get the information mysql-3.23.54a-11

 

When make, objects will be regenerated, that is to say, the new objects will have to be covered by objects.

make clean is to remove old objects.

So it should be that make already contains the function of make clean.

But when it is actually used, such as compiling, debugging and running multiple times, sometimes it is necessary to make clean and make it directly. It seems that the errors left by the last time cannot be cleaned up.

 

#include <expat.h>

question:

The pcre installation failed, so the httpd installation was unsuccessful

Apache failed to start http://blog.csdn.net/ironali/article/details/45228699

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325280604&siteId=291194637