For Linux users, you can use the su and sudo commands. The Use Cases of these two commands are different.Su if your current identity is root, you can use the su command to switch to any other user (without a password), as shown below:
[root@lx200 ~]#
Create a script for quick logon in windows:1. Create a file named "ftp. bat"2. The script content is as follows:@ Echo onCd C: \ Windows \ system32Ftp.exe 192.168.56.101
#########################1. Install the vsFTP Server:[Root @ localhost yum.
# Example config file/etc/vsftpd. conf # The default compiled in settings are fairly paranoid. this sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd. conf.5 for all compiled in defaults. # read this:
/* This retransmits one SKB. policy decisions and retransmit queue * state updates are done by the caller. returns non-zero if an * error occurred which prevented the send. */int round (struct sock * sk, struct sk_buff * skb) {struct tcp_sock * tp =
Original article address: Success!The management of user accounts is one of the most important tasks of the system administrator. In particular, password security is the most important concern for any self-declared security linux system. In this
Chapter 5 basic text processing sorted text
Text processing is almost the most important part of UNIX/LINUXShell programming. In the UNIX/LINUX design, everything is a file, and the collaborative work of many programs in the system is achieved
I. Working Principle of DrbdDRBD is a block device that can be used in HA. it is similar to a network RAID-1 function. (compare NFS in Linux) when you write data to a local file system, the data will be sent to another host on the network. record in
1. System guiding process
Step 1: firmware fireware (CMOS/BIOS) -- POST some self-check (not related to the operating system)
This step mainly checks whether hard disks and other hardware work properly.
CMOS: is solidified on the motherboard,
How can I achieve smooth nginx restart and upgrade?Smooth restart kill-HUP 'cat/usr/local/www/nginx/logs/nginx. pid'
Smooth nginx upgrade:
Cd/yujialin
Wget http://nginx.org/download/nginx-1.0.6.tar.gz
Tar zxvf nginx-1.0.6.tar.gz
Cd
The kill function sends signals to processes or process groups. The raise function allows a process to send signals to itself.
#include kill(pid_t pid, raise(-
Call
raise(signo);
It is equivalent to calling
kill(getpid(), signo);
Kill has four
The sigpending function returns a signal set, where each signal isBlocked but not deliveredTherefore, it must beCurrently pending. This signal set is returned through the set parameter. (These signals areGeneratedSignal, but it is blocked because
Recently, the website server has a high access volume, which often causes frequent server crashes. Normally, restart the server,
./Httpd. sh stop./httpd start is complete. However, due to frequent operations such as this, the website cannot be
Today, rar is not installed on a server, and the following error occurs: rar: error while loading shared libraries: libstdc ++. so.6: cannot open shared object file: No such file or directory is still handled by hao32. After asking about the method,
The iso c standard I/O Library provides two functions to help create temporary files.
#include *tmpnam( **tmpfile(
If ptr is NULL, the generated path name is stored in a static zone, and the pointer pointing to the static zone is returned as the
The following three functions open a standard I/O Stream.
#include *fopen( *restrict pathname, **freopen( *restrict pathname, *restrict type, FILE **fdopen( filedes, *
The differences between the three functions are:
(1) fopen open a
Once a stream is enabled, you can select among three different types of unformatted I/O to read and write the stream:
(1) I/O of each character. One read or write character at a time. If the stream is buffered, standard I/O processes all the
The following two functions provide the function of inputting a row at a time.
#include *fgets( *restrict buf, n, FILE * *gets( *
Both functions specify the buffer address, and the row to be read is sent to it. Gets reads from the standard
Rpm and yum are used to install software and programs in linux. Let's take a look at the differences between rpm and yum in linux. I hope this article will help you.
Differences between yum and rpm
Rpm is a software package management method
Postfix is the MTA software developed by Wietse Venema under the ibm gpl protocol. Postfix is an attempt by Wietse Venema to provide alternatives to the most widely used sendmail. Let's take a look at the postfix configuration and installation
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