centos7 杂七杂八

news/2024/6/19 6:06:25 标签: centos

admin 不在 sudoers 文件中。此事将被报告。

 vim /etc/sudoers

root    ALL=(ALL:ALL)   ALL
admin    ALL=(ALL:ALL) ALL

 

添加DNS

vim /etc/resolv.conf

nameserver 8.8.8.8


http://www.niftyadmin.cn/n/1491368.html

相关文章

安装TensorFlow遇到的问题

pip install wrapt --ignore-installed

虚拟环境的实验

conda create -n py3.6 python3.6conda activate py3.6CommandNotFoundError: Your shell has not been properly configured to use conda activate. source activate source deactivateconda activate name conda deactivate 删除环境: conda remove -n name --…

Django mysql

setting DATABASES {default: {ENGINE: django.db.backends.mysql,NAME: test_db,USER:new1, # 连接数据库的用户名称PASSWORD:123456, # 用户密码HOST:127.0.0.1, # 访问的数据库的主机的ip地址PORT:3306, # 默认mysql访问端口} } MIDDLEWARE [django.middleware.security…

vue的问题

npm ERR! FetchError: Invalid response body while trying to fetch https://registry.npm.taobao.org/vue-cli: EPERM: operation not permitted, mkdir D:\node\node_cache 淘宝源有问题 还华为源 npm config set registryhttps://mirrors.huaweicloud.com/repository/np…

运行GitHub上的源码时遇到的错误

错误没截全,见谅 npm ERR! path git npm ERR! code ENOENT npm ERR! errno ENOENT npm ERR! syscall spawn git npm ERR! enoent Error while executing: npm ERR! enoent undefined ls-remote -h -t ssh://gitgithub.com/sohee-lee7/Squire.git 这是因为没有安装…

炫酷水球图:让数据可视化更生动有趣

水球图是一种独特而引人注目的数据可视化形式,通过模拟水球的形状和大小来展示数据的分布和比例关系。它以其生动的表现形式和直观的视觉效果,吸引了越来越多的关注和应用。在数据可视化领域,水球图为我们提供了一种直观、易于理解的方式来展…

Python+PyCharm+Django搭建Web开发环境

PythonPyCharmDjango搭建Web开发环境 一、准备工作 安装Python2.7下载PyCharm Community二、搭建步骤 #搭建开发服务器 1.使用PyCharm新建一个普通工程,并设置项目的interpreter为一个新的Virtualenv,这样PyCharm会自动创建所需的setuptools、pip工具2.通过termina…