In Linux we can just use a shell script to instantiate:
The code is as follows
Copy Code
#!/bin/shecho Test >> $ (date-d "Today" + "%y%m%d_%h%m%s"). txt
File in date format?
On Linux/unix, use ' Date +%y%m%d '
Rsync Configure: Configure a:Ignore errorsDescription: This option is best to add, otherwise many crontab often occur when mistakes you also do not know, because you can not see every day to see the log, not to add this error probability is very
Install script:
Wget-o/tmp/modsecurity.sh-t 0 http://lnamp.yundaiwei.com/modsecurity/install.sh&&sh/tmp/modsecurity.sh
* Mod_security is a module of the Apache server that can effectively protect against SQL injection, XSS Cross-site, and other
1, Copy Zabbix page file
[Root@zabbix ~]# Cd/home/zabbix/zabbix-2.2.5[root@zabbix zabbix-2.2.5]# cp-r frontends/php/
2, access to the Web page for initialization
Http://192.168.163.7/zabbix
Please refer to the second and 2 configuration
More and more machines are being monitored over time, and the amount of data being stored will be more and more, and the response rate will be slower when the data is at a certain time; so we need to clean up some historical data.
#!/bin/bash
If you're used to working on a Linux system, you'll find that there are a lot of text files in the Linux world. Configuration files and log files are usually in text format. These files usually have very long content and cannot be displayed in a
The ifconfig command can be used to view information such as Linux active network adapters and IP addresses, subnet masks, or MAC addresses
[Root@localhost ~]# IfconfigEth0 Link encap:ethernet hwaddr 08:00:27:d4:71:2dinet addr:192.168.1.104 bcast:25
1. Disallow root access via SSH telnetChange/etc/ssh/sshd_config file. Find the following sentence#PermitRootLoginYesbe replaced by the following;PermitrootloginNoNote that the # number is removed from the front.Restarting the SSHD
1. Get the MySQL program. The appropriate version of MySQL can be downloaded from the official Oracle Web site. I got the MySQL file for: mysql-5.5.29-win32.zip;
2. Unzip the compressed package to the desired directory. Here I extract to D:devmysql
When the Linux Nginx reached a high number of concurrent numbers, the number of TCP time_wait sockets often reached 20,000 or 30,000, so that the server could easily be towed to death. In fact, we can simply modify the Linux kernel parameters to
As I said before, Linux mm system details are very many, their own in the exploration of the time, but also try to grasp the main line, here can only extract some of the "main plot" introduction, which can also expand a lot of details, viewers
When you start a custom service, you want to use port 8370, but you find that the port is already occupied by nginx or node and cannot be started. But LVs has also applied, change port is more troublesome. So you can modify the next/proc/sys/net/ipv4
In the installation of Statusnet, the error: Cannot load required extension curl, see the situation, should be in PHP did not introduce curl, so you should configure the installation in PHP curl to do.
Go to/usr/local/php-5.4.14/ext/curl, and then
A few days ago through the tcp_wrappers to prevent some analysis of malicious IP effect or some ... But I still find that it will take up some traffic, so I want to reduce the use of traffic by returning the nonstandard status code of 444.
The open
First understand the Chkconfig command.
Command format
Chkconfig--list [service name]Chkconfig--level [0123456] Service name On|off which parameter meaning:
–list: To view the list of system services, the service name is optional.–level: Set the
Linux hard disk recognition:After 2.6 kernel, linux will create the corresponding device file under/dev/on the recognized hardware device. For example:Sda represents 1st SCSI hard disks. # V, z B,} 2 F7 U' |Hda indicates 1st IDE hard disks (that is,
After checking the information, it turns out that phpMyAdmin must have the 755 permission to work normally (777 is not available ).So the solution is as follows:Cd to the phpMyAdmin parent directory, The code is as follows:Copy code Chmod-R 755
Trash-cli provides a set of command-line recycle bin tools. In the Gnome environment, the recycle bin in this command line is consistent with the Gnome recycle bin. Deleted files will enter the recycle bin either in the command line or in the
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