Lanmp one-click installation package Series II

Source: Internet
Author: User
1. how to create a default site that can be accessed with an IP address/modify the default site keyword 1 create the default site 2 modify the default site 3 create a site accessed with an IP address start at wdcp2.2, you can directly create a default site in the background, that is, the site that can be accessed directly by IP address is in the previous version... 1. how to create an IP address You can access the default site/ Modify default site
Keywords
1. create a default site
2. modify the default site
3. create a site accessed by IP address


Starting with wdcp2.2, you can directly create the default site in the background, that is, the site that can be accessed directly by IP address.

In earlier versions, some users want to use IP addresses for direct access. now, they can directly create

It also modifies the existing default site. after the default site is created, the default site is modified.

The details are as follows:
Go to website management> create a site
Enter default in the domain name, as shown in figure




You do not need to fill in other items. save and submit the items.
If you want to use other domain names, you can also bind the domain names to be used in the domain name binding.

In this way, you can access the site with an IP address.
Note: By default, only one site can be created, and no IP address is required. that is, if multiple IP addresses are used, no IP address is required.
 
 
2. remotely install wdlinux Don't worry about accidentally disconnecting or compiling mysql Stuck for a long time
SSH remote session management tool-screen tutorial
I. What is the screen command?
Screen is a full-Screen window manager that allows multiple processes to reuse one physical terminal. Screen has the concept of session. you can create multiple screen windows in one screen session, just like operating a real telnet/SSH connection window in each screen window.
[ Screen , You only need to execute Sh in. sh You can disable Ssh Tea, go out to work, or use a computer to play with others or work! Ignore the installation progress!
Wdlinux The installation time is about 2-5 Hours! As long as each 2 Reconnect in hours Ssh After recovery Screen To check whether the compilation and installation are complete! You do not need to check the entire installation process. Screen Run the command !]

II. how to install Screen Command?
The screen command is installed in most of the other streamlined systems or custom systems. if the screen command is not installed, the CentOS system can execute: Yum install screen;
Run Debian/Ubuntu: Apt-get install screen.

III, Screen Command usage?

1 And common usage methods
1.1 create a screen session
Run the following command first: Screen-S lamp, Screen creates a session named lamp.

[Created Lamp You can execute the installation after the session, Sh in. sh After the installation is complete, enter the serial number of the combination to be installed. then, the automatic installation will continue until the installation is complete,
You can disable it at any time during this period. SSH, Or your computer, the installation process is still ongoing on the server]

1.2 Exit or close Ssh Reply, retain Screen Continue execution of tasks or programs in a session
When you need to temporarily exit (the program in the session will not be closed and is still running), you can press the shortcut key Ctrl + a d (that is, press Ctrl, and then press a, d)

1.3 resume the screen session. you will see that it is still being installed without stopping it!
When you return, you can execute the following code: Screen-r lampYou can recover to the working interface of the previously created lamp session.

If you forget the created Scerrn Session name, or no session name specified at the time
Run the following command: Screen-lsScreen will list the existing sessions, 11791. lnmp is the lamp session created by screen. the lamp session has been temporarily exited, so the status is Detached. when screen-r lamp is used, the status changes to Attached, 11791 is the process ID of the screen session. It can also be used to restore the session: Screen-r 11791

1.4 Close Screen Session
Run: Exit[Screen is terminating] indicates that the screen session has been successfully exited.

3 Common shortcut keys
Ctrl + a c: create a window in the current screen session
Ctrl + a w: Window list
Ctrl + a n: Next window
Ctrl + a p: Previous window
Ctrl + a 0-9: switch between 0th windows and 9th windows
 
 
3. how to disable nginx and apache Default access log
The default web access log is on.
This log is useless in general, but it is useful for data analysis.

If you don't need it, you can disable it and it will also improve the performance. here, the default server web default log is disabled.

If logs are still available for the site, the default directory is/www/web_logs.
Site logs are recorded as file names starting with the website domain name
Site logs can also be enabled based on the actual situation.

Three methods
1. directly disable "system settings" in the wdcp background
2. run/www/wdlinux/tools/web_logs.sh on/off // on or off (after wdcp_v2.5)
3. perform the following manual operations:

How to disable nginx
Sed-I '/log_format/\
Access_log off; '/www/wdlinux/nginx/conf/nginx. conf

How to disable apache
Sed-I's # CustomLog "logs/access_log" common # CustomLog/dev/null common # '/www/wdlinux/apache/conf/httpd. conf
 
This tutorial from http://www.wdlinux.cn, reprint please note!
Related Article

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.