
centos7
戴军
这个作者很懒,什么都没留下…
展开
-
linux 执行shell文件时报错. $'\r': command not found , 但是在命令行执行没问题.
问题的原因是,由于windows与linux系统的差异导致的因为linux上的换行符为\n,而windows上的换行符为\r\n。所以脚本到linux上就无法解析了。通常的处理方法有两种:第一种: 进入文件直接修改文件解析格式vi hello.sh### Esc进入命令行运行模式### : set ff=unix第二种,用dos2unix模块装换文...原创 2019-10-30 15:13:03 · 609 阅读 · 0 评论 -
centos7 用yum 安装nodejs
首先 需要更新node.js的yum源 根据你想要安装的版本, 选择对应的yum源Node.js v8.x安装命令#curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -Node.js v7.x安装命令#curl --silent --location https://rpm.nodes...原创 2018-10-24 10:29:55 · 16629 阅读 · 1 评论