Linux (CentOS) project deployment phase related command rollup

Source: Internet
Author: User
Tags nginx load balancing

1. SSH Password-free login


Main command

Cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys--> Add public key

Service sshd Restart-and restart SSH services


Reference Links:

Http://jingyan.baidu.com/article/2fb0ba4043124a00f2ec5f0f.html



2. View system Related information:


Uname-a View OS Details


File/bin/ls

Display the System program information, you can see how many bits


Get machine Word length

Getconf Long_bit


View OS Version

Cat/proc/version


Reference Links:

Http://blog.sina.com.cn/s/blog_537de4b50100zw1n.html

Http://1126.www.qixoo.qixoo.com/s/blog_537de4b50100zw1n.html


View OS detail parameter information

Getconf-a



3. File Remote Copy Example


Local to Remote: Scp-r./files to be transferred [email protected]:/path/to/destination Folder


Remote to Local: SCP [email protected]:/path/to/destination file.



4. mysql


To completely remove the MySQL command:

Yum remove MySQL mysql-server mysql-libs compat-mysql51

Rm-rf/var/lib/mysql

Rm/etc/my.cnf

See if you have MySQL software:

Rpm-qa|grep MySQL

Some words continue to delete


Reference Links:


http://www.cnblogs.com/shenliang123/p/3203546.html (Installation)


Http://www.cnblogs.com/ikodota/p/use_yum_update_mysql.html (upgrade to 5.5.37)


Permissions:

Grant all privileges on * * to ' root ' @ '% ' identified by ' hjhjhj ' with GRANT option;


Landing:

Mysql-h ipaddress-p3306-uroot-p


Export Import Data:


Mysqldump-uroot-ppassword-h ipaddress-p Port--routines--default-character-set=utf8--databases mydatabase >/tmp/ My.sql


Mysql> Source/tmp/my.sql



5, Installation Jdk,jetty,nginx


Jdk:

RPM-IVH jdk-8u91-linux-x64.rpm


Jetty

wget http://central.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.3.14.v20161028/ Jetty-distribution-9.3.14.v20161028.tar.gz


Tar zxvf/home/jetty-distribution-9.3.14.v20161028.tar.gz-c/usr/share/



MV jetty-distribution-9.3.14.v20161028/jetty/



Nginx:


Reference Links:

http://blog.chinaunix.net/xmlrpc.php?r=blog/article&uid=29791971&id=4702007


For jetty and Nginx load Balancing configuration, you can refer to this article:

Nginx+jetty Load Balancer Deployment at a glance on Mac


6, glibc version upgrade


Reference Links:

Http://www.cnblogs.com/gw811/p/3676856.html



7, Gitlab installation (on-line multi-pit, according to the standard document, select the appropriate version installed)


Reference Links:

Https://github.com/gitlabhq/gitlab-recipes/tree/8-1-stable/install/centos



8. Firewall configuration


Reference Links:

http://blog.csdn.net/jemlee2002/article/details/7042991/



9. View Java process and parameter configuration


JPs


Jinfo-flags 18311


Jinfo-flag USESERIALGC 18311



10. Other Commands:

Netstat-anp|grep 8099 View 8099 port occupancy


To install a specific jar package:

MVN Install:install-file-dfile=./my.jar-dgroupid=com.dong-dartifactid=my-dversion=1.0.0-dpackaging=jar

Linux (CentOS) project deployment phase related command rollup

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.