1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| 1 yum update 2 yum -y install gcc make gcc-c++ openssl-devel wget 3 lsblk 4 file -s /dev/nvme1n1 5 mkfs -t ext4 /dev/nvme1n1 6 df -h 7 mkdir /data 8 mount /dev/nvme1n1 /data 9 cp /etc/fstab /etc/fstab.orig 10 df -h 11 file -s /dev/nvme1n1 12 ls -al /dev/disk/by-uuid/ 13 vim /etc/fstab 14 umount /data 15 mount -a 16 df -h 17 cd /data/ 18 mkdir software 19 cd software/ 20 wget https://npm.taobao.org/mirrors/node/v11.13.0/node-v11.13.0.tar.gz 21 cd /etc/yum.repos.d/ 22 ll 23 vim nginx.repo 24 yum install nginx 25 nginx -v 26 chkconfig --level 35 nginx on 27 mkdir /data/log/ 28 mkdir /data/log/nginx 29 vim /etc/nginx/nginx.conf 30 cd /data/ 31 mkdir nodejs 32 ulimit -a 33 vim /etc/sysctl.conf 34 sysctl -p 35 ulimit -a 36 vim /etc/security/limits.conf 37 ulimit -a 38 ulimit -n 39 cat /proc/cpuinfo| grep "cpu cores"| uniq 40 cd /data/software/ 41 tar -zvxf node-v11.13.0.tar.gz 42 cd node-v11.13.0/ 43 ./configure 44 make 45 cd /data/software/node-v11.13.0/ 46 make install 47 node -v 48 npm -v
|