Commands frequently used in Linux database installation during work

Source: Internet
Author: User

1
If you can perform remote operations, set the ssh service on the server
A. Modify the sshd_config file and run the command vi/etc/ssh/sshd_config.
B. Remove the # PasswordAuthentication no comment and change NO to YES.
C. Remove the # PermitRootLogin yes annotation.
D. restart the SSH service. The command is/etc/init. d/sshd restart.
E. Verify the SSH service status. The command is/etc/init. d/sshd status.

2
View disk capacity
Df-h

3
View System Version
Uname-

4
View disk drive
Fdisk-l

5
Attach a cd
Mount-t iso9660/dev/hdc/mnt/cdrom
Attach a USB flash drive
Mount/dev/hdc/mnt/upan

6
Local file copying
Cp-R/mnt/upan/xxx/usr/local/kb
Remote file copy
Scp/mnt/upan/xxx. sh root @ IP_ADDR:/usr/local/kb

7
View the permissions of files in the current folder
Ls-l

8
Grant the execution permission to setup. sh.
Chmod + x./setup. sh

9
Modify the owner and array of a folder
Chown-R kb: kb/data

10
If some link libraries are not found during installation
Search for related libraries in the system
Find/-name libName

11
Establish a soft connection and continue installation
Ln-s *. so *. so

12
Or set the path of the dependent Link Library.
Export LD_LIBRARY_PASS = ~ PWD ~
Export LD_LIBRARY_PASS =/usrlocal/BaseSoft/king/bin
Echo $ LD_LIBRARY_PASS

13
Check whether the linked libraries on which the target program depends are OK.
Ldd kb

14
To view system resource limits, you must adjust the number of file handles that can be opened by a process to limit the number of open files.
Ulimit-

15
Query Process id
Ps-ef | grep kb

16
Kill this process
Kill-9 kb _ process id

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.