CentOS 7 Python Anacondaを実行
1.pythonのチェック
ps:システムはPython 2.7.5を持っていて、削除してシステムが崩壊したと推定します
2.サーバ32ビットまたは64ビットの決定
so,64ビット
3.Anacondaをダウンロードしてインストールする
Download Anaconda Linux 64ビットバージョンを選択して実行します
4.終章
しばらくしてから
vncよし、おかしい!
In:
python
Out:
Python 2.7.5 (default, Jun 24 2015, 00:41:19)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
ps:システムはPython 2.7.5を持っていて、削除してシステムが崩壊したと推定します
2.サーバ32ビットまたは64ビットの決定
In:
file /bin/ls
Out:
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 .......
so,64ビット
3.Anacondaをダウンロードしてインストールする
Download Anaconda Linux 64ビットバージョンを選択して実行します
bash /root/ /Anaconda2.3.0-Linux-x86_64.sh
yes
( /root/anaconda) ENTER
/root/.bashrc [yes|no]
yes:
:
Prepending PATH=/root/anaconda/bin to PATH in /root/.bashrc
A backup will be made to:/root/.bashrc-anaconda.bak
For this change to become active,you have to open a new terminal.
:
vim ~/.bash_profile( , /etc/bashrc /etc/profile )
$ export PATH=/root/home/qy/anaconda/bin:$PATH
source ~/.bash_profile( )
bash: soucre: command not found
, root $PATH ( “ ”, )。
:/bin , /usr/bin, /sbin, /usr/sbin
.bash_profile PATH。 :PATH=$PATH:$HOME/bin :
PATH=$PATH:$HOME/bin:/sbin:/usr/bin:/usr/sbin
:/bin ,/usr/bin,/sbin,/usr/sbin。
:
./bin:
bin binary :cat、cp、chmod df、dmesg、gzip、kill、ls、mkdir、more、mount、rm、su、tar 。
/usr/bin:
c++、g++、gcc、chdrv、diff、dig、du、eject、elm、free、gnome*、 gzip、htpasswd、kfm、ktop、last、less、locale、m4、make、man、mcopy、ncftp、 newaliases、nslookup passwd、quota、smb*、wget 。
/sbin:
:cfdisk、dhcpcd、dump、e2fsck、fdisk、halt、ifconfig、ifup、 ifdown、init、insmod、lilo、lsmod、mke2fs、modprobe、quotacheck、reboot、rmmod、 runlevel、shutdown 。
/usr/sbin:
:dhcpd、httpd、imap、in.*d、inetd、lpd、named、netconfig、nmbd、samba、sendmail、squid、swap、tcpd、tcpdump 。
echo $PATH
reboot( )
vnc 。。
4.終章
しばらくしてから
[root@localhost etc]# rpm -qa | vncserver
:
New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log
vncよし、おかしい!