Cnetos Set up
#Select ..
linode ... it is very good but gwd...
qqcould ... it is using.
Centos 7.5
#ssh
进入Remote Access,在下面点击Launch Lish Ajax Console
输入 lish via ssh
输入您的ssh帐号和ssh密码登录
输入 vi /etc/ssh/sshd_config 修改端口
输入 nano /etc/ssh/sshd_config 修改端口
点击i即进入编辑状态,编辑完成后按ESC键退出编辑状态,退出编辑状态后
输入:wq即可保存文档并退出vi编辑器
输入 /etc/init.d/sshd restart
重启ssh服务
#ready
yum update
Complete!
[root@VM_0_13_centos downloads]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 51473868 1859940 47290808 4% /
devtmpfs 497168 0 497168 0% /dev
tmpfs 507780 0 507780 0% /dev/shm
tmpfs 507780 400 507380 1% /run
tmpfs 507780 0 507780 0% /sys/fs/cgroup
tmpfs 101560 0 101560 0% /run/user/0
yum install epel-release
#Select software
##python3.7
yum -y groupinstall "Development tools"
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
yum install libffi-devel -y
wget -c https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
tar -xvJf Python-3.7.0.tar.xz
cd Python-3.7.0
./configure --prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
pwd
[root@VM_0_13_centos Python-3.7.0]# python3
Python 3.7.0 (default, Dec 26 2018, 13:47:14)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
[root@VM_0_13_centos Python-3.7.0]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 51473868 3705432 45445316 8% /
devtmpfs 497168 0 497168 0% /dev
tmpfs 507780 0 507780 0% /dev/shm
tmpfs 507780 400 507380 1% /run
tmpfs 507780 0 507780 0% /sys/fs/cgroup
tmpfs 101560 0 101560 0% /run/user/0
##golang 1.11.4
wget -c https://dl.google.com/go/go1.11.4.linux-amd64.tar.gz
go go1.11.4.linux-amd64.tar.gz
[root@VM_0_13_centos downloads]# mv go /usr/local
[root@VM_0_13_centos downloads]# ./go version
-bash: ./go: No such file or directory
[root@VM_0_13_centos downloads]# echo "export GOPATH=$HOME/go" >> ~/.bashrc
[root@VM_0_13_centos downloads]# echo "export PATH=$PATH:$GOPATH/bin:/usr/local/go/bin" >> ~/.bashrc
[root@VM_0_13_centos downloads]# source ~/.bash_profile
[root@VM_0_13_centos downloads]# mkdir -p ~/go/src
[root@VM_0_13_centos downloads]# go version
go version go1.11.4 linux/amd64
[root@VM_0_13_centos downloads]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 51473868 3176348 45974400 7% /
devtmpfs 497168 0 497168 0% /dev
tmpfs 507780 0 507780 0% /dev/shm
tmpfs 507780 400 507380 1% /run
tmpfs 507780 0 507780 0% /sys/fs/cgroup
tmpfs 101560 0 101560 0% /run/user/0
##nim
wget https://nim-lang.org/choosenim/init.sh
bash init.sh
choosenim-init: Downloading choosenim-0.3.2_linux_amd64
Prompt: Can choosenim record and send anonymised telemetry data? [y/n]
... Anonymous aggregate user analytics allow us to prioritise
... fixes and features based on how, where and when people use Nim.
... For more details see: https://goo.gl/NzUEPf.
Answer: y
Downloading Nim 0.19.0 from nim-lang.org
[##################################################] 100.0% 0kb/s
Extracting nim-0.19.0.tar.xz
Building Nim 0.19.0
Building tools (nimble, nimgrep, nimsuggest)
Installed component 'nim'
Installed component 'nimble'
Installed component 'nimgrep'
Installed component 'nimsuggest'
Switched to Nim 0.19.0
choosenim-init: ChooseNim installed in /root/.nimble/bin
choosenim-init: You must now ensure that the Nimble bin dir is in your PATH.
choosenim-init: Place the following line in the ~/.profile or ~/.bashrc file.
choosenim-init: export PATH=/root/.nimble/bin:$PATH
##crystal
//cd /usr/lib/node_modules/npm
// npm install crystal
wget https://dist.crystal-lang.org/rpm/setup.sh
bash setup.sh
yum install crysta
crystal version
Crystal 0.27.0 [c9d1eef8f] (2018-11-01)
LLVM: 4.0.0
Default target: x86_64-unknown-linux-gnu
##brook
wget -N --no-check-certificate https://softs.loan/Bash/brook.sh && chmod +x brook.sh && bash brook.sh
[root@VM_0_13_centos downloads]# wget -N --no-check-certificate https://softs.loan/Bash/brook.sh && chmod +x brook.sh && bash brook.sh
--2018-12-26 13:57:56-- https://softs.loan/Bash/brook.sh
Resolving softs.loan (softs.loan)... 94.199.51.120
Connecting to softs.loan (softs.loan)|94.199.51.120|:443... ^C
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/brook.sh && chmod +x brook.sh && bash brook.sh
Last-modified header missing -- time-stamps turned off.
2018-12-26 14:00:34 (995 KB/s) - ‘brook.sh’ saved [27261/27261]
cp: ‘/usr/share/zoneinfo/Asia/Shanghai’ and ‘/etc/localtime’ are the same file
Brook 用户配置:
————————————————
地址 : xxx.xxx.xxx.xxx
端口 : xxx
密码 : x
协议 : Brook(新版)
Brook 链接 : brook://default%20xxx.xxx.xxx.xxx%3Axx%20xxx
[注意] Brook链接 仅适用于Windows系统的 Brook Tools客户端(https://doub.io/dbrj-7/)。
##R
yum install R
Complete!
[root@VM_0_13_centos downloads]# R
R version 3.5.1 (2018-07-02) -- "Feather Spray"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> q()
Save workspace image? [y/n/c]: n
[root@VM_0_13_centos downloads]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 51473868 2692844 46457904 6% /
devtmpfs 497168 0 497168 0% /dev
tmpfs 507780 0 507780 0% /dev/shm
tmpfs 507780 400 507380 1% /run
tmpfs 507780 0 507780 0% /sys/fs/cgroup
tmpfs 101560 0 101560 0% /run/user/0
//####centos 改变文件属性
chmod 777 文件名
其中:rwx也可以用数字来代替
r ------------4
w -----------2
x ------------1
- ------------0
行动:
表示添加权限
- 表示删除权限
= 表示使之成为唯一的权限
当大家都明白了上面的东西之后,那么我们常见的以下的一些权限就很容易都明白了:
-rw------- (600) 只有所有者才有读和写的权限
-rw-r--r-- (644) 只有所有者才有读和写的权限,组群和其他人只有读的权限
-rwx------ (700) 只有所有者才有读,写,执行的权限
-rwxr-xr-x (755) 只有所有者才有读,写,执行的权限,组群和其他人只有读和执行的权限
-rwx--x--x (711) 只有所有者才有读,写,执行的权限,组群和其他人只有执行的权限
-rw-rw-rw- (666) 每个人都有读写的权限
-rwxrwxrwx (777) 每个人都有读写和执行的权限
---------------------
//####登录Linux实例
×
浏览器 WebShell 方式登录
立即登录
支持复制粘贴、中文输入法,需要开启 SSH 端口(TCP:22)
标准登录方式
使用 Windows 系统的电脑
1、下载安装 Windows SSH 和 Telnet 客户端工具 Putty。 下载Putty
2、用户名: root,Host: xxx.xxx.xxx.xxx
3、按照 Putty 使用帮助进行登录。 Putty 密码方式使用帮助
使用 Linux/Mac OS X 系统的电脑(使用密码登录)
1、打开 SSH 客户端(Mac可使用系统自带的终端)
2、输入 ssh -q -l root -p 22 xxx.xxx.xxx.xxx
3、输入 CVM 实例密码进行登录。
使用 Linux/Mac OS X 系统的电脑(使用密钥登录)
1、打开 SSH 客户端(Mac可使用系统自带的终端)。
2、查找您实例关联的 SSH 密钥文件本地存放地址。
3、您的密钥必须不公开可见,SSH 才能工作。请使用此命令: chmod 400 [密钥文件路径]。
4、输入命令: ssh [-i 密钥文件路径] root@xxx.xxx.xxx.xxx。
浏览器 VNC 方式登录 不推荐
暂不支持复制粘贴、中文输入法。 立即登录
提示:采用VNC方式登录,请务必开启 MFA 二次验证提高安全保障级别
/////
###update to gcc 8.1
cd ..
yum update
wget http://ftp.gnu.org/gnu/gcc/gcc-8.1.0/gcc-8.1.0.tar.gz
tar -xvf gcc-8.1.0.tar.gz
cd gcc-8.1.0
./contrib/download_prerequisites
./configure
configure: error: I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib.
[root@li1245-19 gcc-8.1.0]#
I did need 32-bit libraries. so
./configure --disable-multilib
ok!
////////////////////////////////
nohup make &
nohup make install &
//nohup make && make install &
nohup: ignoring input and appending output to ‘nohup.out’
////////////
[root@VM_0_13_centos gcc-8.1.0]# ./configure --disable-multilib
[root@VM_0_13_centos gcc-8.1.0]# nohup make &
[1] 27495
[root@VM_0_13_centos gcc-8.1.0]# nohup: ignoring input and appending output to ‘nohup.out’
[root@VM_0_13_centos gcc-8.1.0]# exit
logout
* SSH connection closed *
* Connection closed *
///////////////
网友评论