linux
- 切换用户
sudo -i - 远程登录服务器
ssh root@公网ip然后 输入密码 - 查看当前路径
pwd - 删除文件
rm 文件名rm -rf 文件夹名 - 查看当前网络信息
ifconfig mkdir name创建name的目录cp file1 file2复制一个文件mv webdata /bin/usr将webdata移动到/bin/usr目录下mv /usr/lib/* /zone是将 /usr/lib/下所有的东西移到/zone/中mv blog-copy/.[^.]* blog移动隐藏文件
nvm
nvm install 版本号安装指定版本nvm list查看所有版本nvm use 版本号使用哪个版本nvm alias default stable设置默认版本
阿里云服务器安装环境
yum install git安装git安装nvm
git clone https://github.com/cnpm/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags` 激活nvmecho ". ~/.nvm/nvm.sh" >> /etc/profilesource /etc/profilenvm list-remote 列出Node.js的所有版本。nvm install stable 安装稳定版nvm use install stable安装nginx
mkdir -p /usr/local/src/nginx-filescd /usr/local/src/nginx-fileswget http://www.zlib.net/zlib-1.2.11.tar.gzwget https://ftp.pcre.org/pub/pcre/pcre-8.40.tar.gzwget https://www.openssl.org/source/openssl-1.1.0e.tar.gzwget http://nginx.org/download/nginx-1.10.3.tar.gz解压到当前目录tar zxvf nginx-1.10.3.tar.gz tar zxvf pcre-8.40.tar.gz tar zxvf zlib-1.2.11.tar.gz tar zxvf openssl-1.1.0e.tar.gz然后打开解压的nginx文件夹cd nginx-1.10.3yum install gcc gcc-c++ ncurses ncurses-devel bison libgcrypt perl automake autoconf libtool make在该目录下安装编译文件#增加系统用户 wwwgroupadd wwwuseradd -r -g www www./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-ipv6 --with-poll_module --with-select_module --with-pcre=/usr/local/src/nginx-files/pcre-8.40 --with-zlib=/usr/local/src/nginx-files/zlib-1.2.11 --with-openssl=/usr/local/src/nginx-files/openssl-1.1.0emakemake install 这样基本酒操作完成了,接下来启动nginx/usr/local/nginx/sbin/nginx
等待更新...
继续阅读与本文标签相同的文章
-
微服务引擎 ZooKeeper 版正式公测
2026-05-23栏目: 教程
-
阿里云喜获四大国家级认可,成“安全技术国家队”主力选手!
2026-05-23栏目: 教程
-
阿里云许诗军:数字政府1.0是网上政务,2.0的核心支撑是数据化运营
2026-05-23栏目: 教程
-
微服务开源生态报告 No.6
2026-05-23栏目: 教程
-
在 Homebrew 上发布 Golang 项目
2026-05-22栏目: 教程
