Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set up various environments in the Linux series

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

It is believed that many inexperienced people don't know what to do about how to install various environments in the Linux series. therefore, this paper summarizes the causes and solutions of the problems. Through this article, I hope you can solve this problem.

Linux environment installation collection

1. Using VirtualBox to install Linux system

Baidu encyclopedia: http://jingyan.baidu.com/article/b2c186c8caaf72c46ff6ff7a.html

1.1. Ubuntu installation tutorials

Reference document: http://blog.csdn.net/liaolu2999/article/details/52081438

Note that all things are selected in English, and errors will be reported in the process of Chinese installation.

Http://www.linuxidc.com/Linux/2016-08/134580.htm

Host name: localhost

Assist the ordinary user of root to set it to jupiter

The current user is jupiter password abcd1234

1.2. How do I find problems with shared folders in VirtualBox?

The problem is how to copy external things in the linux virtual machine, but it is not implemented.

Http://blog.chinaunix.net/uid-27034868-id-3412024.html

1.3. Export virtual hosts to files

TODO

1.4. The use of vagrant tools

TODO: instructions for use

Https://my.oschina.net/u/3424381/blog/888205

two。 Preparation 2.1. Turn on administrator privileges

The root account is disabled by default in utunbu. To enable the root account, execute: sudo passwd in the terminal.

First prompt you to enter the password of the current user

Then prompt you to set the password for root and enter the new password twice, OK

Sometimes it is necessary to add sudo to the Linux command, because even if the root user logs in, it does not necessarily have the highest system privileges.

2.2. How to turn on ssh on linux

problem

We couldn't copy and paste the outside content in VirtualBox, so we logged in through ssh

Install the SSH service

Sudo apt-get install ssh

Reference document: http://www.360doc.com/content/13/1116/17/3777348_329691460.shtml

Let me log in to ssh with root

Log in to the Ubuntu system with an ordinary user and open a command line window

Change the root user password, command: sudo passwd root

First enter the password of the current user

Then enter the password of the root account

Confirm the password of the root user

Edit the configuration file for ssh, command: sudo vi / etc/ssh/sshd_config

In the Authentication section, comment out "PermitRootLogin without-password"

In the Authentication section, add "PermitRootLogin yes"

Save the data and exit the editor

Restart the ssh service, command: sudo service ssh restart

Then you can log in to ssh using your root account

Every time the installation of the Ubuntu system is completed, each time you use the root account to log in through ssh, you can only login to the system through other users, then configure the root account, and then log in.

Operation steps

Reference document: http://jingyan.baidu.com/article/8ebacdf02f552b49f65cd5c9.html

Realize secret-free login

Use ssh-keygen to generate public and dead keys on the client side

Secret-free login can be achieved by uploading the public key to the ~ / .ssh/authorized_key file.

2.3. How to use sftp

Uploading and downloading things from linux servers is also very inconvenient, so we can use the tool FileZilla to implement it.

Operation

To use the sftp feature, you need to add the following configuration text to the configuration file / etc/ssh/sshd_config of ssh, taking SLES 10.3 as an example:

Subsystem sftp / usr/lib64/ssh/sftp-server

Then service ssh restart restarts ssh and OK.

Reference document: https://zhidao.baidu.com/question/646621162747500445.html

Commands are often used, but we use tools instead of the command line

Sftp username@host ip # Log in to the sftp server ls # list the files under the current directory on the remote server cd dir # enter the dir directory above the remote server lcd dir # enter the local dir directory quit # exit sftp get file # download files from the server to the local current directory put file # upload a file under the local current directory to the server mget file1 File2 # download multiple files mput file1 file2 # upload multiple files # use! Start to represent shell, for example! ls can list the files of the local current directory 3. Linux install node

New method

Apt install nodejs

Apt install npm

Npm install-g n

N lts

Tj: https://github.com/tj/n

Reference article: http://www.cnblogs.com/cike8899/p/5954553.html

The old way

Http://www.linuxidc.com/Linux/2016-09/135487.htm

Http://jingyan.baidu.com/article/25648fc18ee5bd9190fd0058.html

4. Linux installs java jdk 1.84.1. Ubuntu installation

Operation

PPA mode: 1. If you have installed OpenJDK in the Ubuntu software center Please delete it first using the following commands: sudo apt-get purge openjdk*2, add PPA source sudo add-apt-repository ppa:webupd8team/java3, update source database sudo apt-get update4, install Oracle Java 8sudo apt-get install oracle-java8-installer5, view version: java- version6, set Java 8 environment variable: sudo apt-get install oracle-java8-set-default7, java version switch sudo update-java-alternatives-s java-8-oracle8, uninstall jdksudo apt-get remove oracle-java8-installer

Reference document: http://www.linuxdiyf.com/linux/22044.html

The old way

Http://blog.csdn.net/yebhweb/article/details/55098189

Wget http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz

4.2. Centos installation

Yum-y install java-1.8.0-openjdk*

5. Linux installs jenkins5.1. Ubuntu installs jenkins5.1.1. Installation documentation

Reference document: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins

Chinese reference document: http://blog.csdn.net/Mungo/article/details/52453544

Http://www.linuxdiyf.com/linux/22000.html

After installation, you can log in to the host:8080 port for access.

Find the initialization password in the specified file in the figure

Install the plug-ins required for jenkins, set the user name to admin and the password to abcd1234

5.1.2. Several problems in installation

There seems to be a version problem. It can only be the Java jdk1.8 version.

Http://stackoverflow.com/questions/21338721/gpg-no-valid-openpgp-data-found

Https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=ubuntu16.4%E5%AE%89%E8%A3%85jkens

5.2. Centos installs jenkinssudo wget-O / etc/yum.repos.d/jenkins.repo http://jenkins-ci.org/redhat/jenkins.reposudo rpm-- import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.keyyum-y install java-1.8.0-openjdk*yum install jenkins6. Install docker on linux

Official website: https://docs.docker.com/engine/installation/linux/ubuntu/

Installation steps

/ / remove the old version of $sudo apt-get remove docker docker-engine// and add additional plug-ins $sudo apt-get update$ sudo apt-get install\ linux-image-extra-$ (uname-r)\ linux-image-extra-virtual// setup warehousing $sudo apt-get install\ apt-transport-https\ ca-certificates\ curl\ software-properties-common$ curl-fsSL https://download.docker.com/linux/ubuntu/ Gpg | sudo apt-key add- $sudo add-apt-repository\ "deb [arch=amd64] https://download.docker.com/linux/ubuntu\ $(lsb_release-cs)\ stable" / / install docker$ sudo apt-get update$ sudo apt-get install docker-ce$ sudo docker run hello-world

Delete the image and working directory of docker

Rm-rf / var/lib/docker

There is python2.7.9 in the node image of dockerhub

7. Install nginx8 on linux. Install redis on linux

Http://blog.csdn.net/mungo/article/details/51322665

Https://my.oschina.net/ghm7753/blog/653303

9. Install mongo on linux

Https://my.oschina.net/ghm7753/blog/653264

10. Install gogos11 on linux. Install gitlab11.1 on linux. Document

Official website: https://about.gitlab.com/downloads/

Http://www.tuicool.com/articles/bYbi2mJ here seems to have a way to create a new image.

Https://yq.aliyun.com/articles/74395?spm=5176.8246799.0.0.7Fp6s9

12. Install mysql on linux after reading the above, do you know how to set up the installation of various environments in the Linux series? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report