Cnetos Set up on Tencent Clould

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 *

///////////////

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 216,919评论 6 502
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,567评论 3 392
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 163,316评论 0 353
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,294评论 1 292
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,318评论 6 390
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,245评论 1 299
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,120评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,964评论 0 275
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,376评论 1 313
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,592评论 2 333
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,764评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,460评论 5 344
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,070评论 3 327
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,697评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,846评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,819评论 2 370
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,665评论 2 354

推荐阅读更多精彩内容