Home  >  Article  >  Backend Development  >  wdcp details

wdcp details

WBOY
WBOYOriginal
2016-08-08 09:32:511252browse

Linux is really a pain for a novice sometimes. . . Changing the wrong configuration file without backing it up may take a whole morning or a whole day. I once reinstalled mysql+php+Apache in my virtual machine due to a mistake in installing memcached. When configuring the server before, I had to mount additional disks. I spent several hours doing this, but for some unknown reason, I couldn't mount the specified directory. Due to time constraints, we couldn't let it go. Alas, if I talk too much, it’s all sad things, O(∩_∩)O~. . .

Combined with myself, I would like to give some advice to Linux novices. Make a backup before changing the configuration file, and do not change the file configuration file permissions randomly. When typing based on other people's examples, try to figure out the reason for the typing.


Our server uses Alibaba Cloud's Linux server, which was previously installed using a one-click installation script (a bit of cutting corners and creating backdoors). . . I encountered some problems in the later stage. Let me summarize them based on the problems.


Detailed description of first-level directory


Start website directory (phpinfo, nginx_info): /www/web/default

Trash: /www/trash

Default website directory: /www/default/public_html

mysql database backup directory:/www/backup/mysql

Backend settings web_log:/www/web_logs

Software installation location:/www/wdlinux


/www/wdlinuxSecondary directory description


pureftpd: PureFTPd is a free FTP server software that focuses on program robustness and software security

init.d:/www/wdlinux/init.d: ​​script used by wdcp to control application startup

/www/wdlinux/wdcp_bk: wdcp backup system configuration file

/www/wdlinux/httpd-2.2.24:http main program of Apache server

/www/wdlinux/etc: A place for various configuration files, including soft links

/www/wdlinux/tmp: wdcp temporary directory

apache_php-5.3.27: php and Apache

/www/wdlinux/nginx_php-5.3.27: nginx and php

/www/wdlinux/wdapache: Apache main file

/www/wdlinux/tools: wdcp various shell script tools

/www/wdlinux/wdphp:php file


Detailed description of each application

nginx


nginx info (website default entry file) file:/www/web/default/nima.php

nginx configuration file directory:/www/wdlinux/nginx-1.2.9/conf/ngin.conf

nginx rewrite configuration file:/www/wdlinux/nginx-1.2.9/conf/rewrite

nginx error/operation log:/www/wdlinux/nginx-1.2.9/logs

nginx start/restart/stop operations:

/www/wdlinux/nginx-1.2.9/sbin/nginx -c /www/wdlinux/nginx-1.2.9/conf/ngin.conf

/www/wdlinux/nginx-1.2.9/sbin/nginx -s reload

/www/wdlinux/nginx-1.2.9/sbin/nginx -s stop

nginx checks whether the default configuration file is normal

/www/wdlinux/nginx-1.2.9/sbin/nginx -t


Apache


httpd: httpd is the main program of ApacheHTTP server

/www/wdlinux/wdapache/logs: Apache log files

/www/wdlinux/wdapache/bin: Various Apache commands

Apache/Start/Restart/Stop

/www/wdlinux/wdapache/bin/httpd start Start

/www/wdlinux/wdapache/bin/httpd restart Restart

/www/wdlinux/wdapache/bin/httpd httpd stop stop service


mysql

mysql directory:/www/wdlinux/mysql-5.1.69

mysql start/restart/stop

/www/wdlinux/mysql-5.1.69/libexec/mysqld start

/www/wdlinux/mysql-5.1.69/libexec/mysqld restart

/www/wdlinux/mysql-5.1.69/libexec/mysqld stop


Linux common information explanation (extract, there are many online so I won’t list them all)

.o, is the target file, equivalent to the .obj file in windows

.so is a shared library, a shared object, used for dynamic linking, similar to dll

.a is a static library, which is several .o put together for static connection.

.la is some shared libraries automatically generated by libtool, which can be edited and viewed by vi. It mainly records some configuration information. You can use the following command to view

/bin Binary executable command

/dev device special files

/etc system management and configuration files

/etc/rc.d startup configuration files and scripts

/home is the base point of the user's home directory. For example, the home directory of user user is /home/user, which can be represented by ~user.

/lib standard programming library, also called dynamic link shared library, functions similar to .dll files in windows

/sbin super management command, which stores the management programs used by system administrators

/tmp public temporary file storage point

/root system administrator’s home directory

/mnt The system provides this directory to allow users to temporarily mount other file systems.

The directory /lost+found is usually empty. The system shuts down abnormally and leaves a "homeless" file (what is it called .chk in Windows) right here?

/proc virtual directory is a mapping of system memory. This directory can be accessed directly to obtain system information.

/var is the overflow area of ​​certain large files, such as log files of various services.

/usr is the largest directory. Almost all the applications and files to be used are in this directory.



The above introduces the detailed description of wdcp, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn