原日期: 2018-4-21
选择centos7操作系统
wget https://bootstrap.pypa.io/ez_setup.py -O - | python
wget https://files.pythonhosted.org/packages/ae/e8/2340d46ecadb1692a1e455f13f75e596d4eab3d11a57446f08259dee8f02/pip-10.0.1.tar.gz
tar -xzvf pip-10.0.1.tar.gz
cd pip-10.0.1
python setup.py install
cd ~
yum install gcc
yum install python-devel
pip install jupyterlab
jupyter notebook --generate-config
ipython
from notebook.auth import passwd
passwd()
Enter password: 123456
Verify password: 123456
'sha1:e00ee9ab9a42:22e8c0dc771612348eeee698cde8ec77fba42e7f'
exit()
c.NotebookApp.ip='*'
c.NotebookApp.password = u'sha1:e00ee9ab9a42:22e8c0dc771612348eeee698cde8ec77fba42e7f'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888
firewall-cmd --zone=public --add-port=8888/tcp --permanent
systemctl restart firewalld.service
iptables -L -n
systemctl stop firewalld.service
systemctl disable firewalld.service
firewall-cmd --state
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
wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
tar -xvJf Python-3.6.2.tar.xz
cd Python-3.6.2
./configure --prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
cd ~
pip3 install --upgrade pip
python3 -m pip install ipykernel
python3 -m ipykernel install --user
yum -y install epel-release
yum -y install R
yum -y install curl
yum -y install libcurl libcurl-devel
yum -y install libxml2 libxml2-devel
R
install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec()
nohup jupyter lab --allow-root &
http://服务器ip地址:8888/lab