一.描写叙述 普通用户hadoop使用:tar -xzvf ns2.35.tar.gz命令解压文件,系统提示找不到该文件,无法打开该文件夹,于是想到使用sudo命令借用root用户的权限:sudo tar -xzvf ns2.35.tar.gz 结果提示:username is not in the sudoers file. This incident will be reported. 二.解析 CentOS系统安装完毕后默认普通用户是无法使用sudo命令借用root用的权限的,须要在/et
perl下安装模块可以使用cpan命令,但是通常我们不具有root用户权限,所以只能以sudo方式安装模块. 例如需要安装Net::SCP::Expect模块, 执行cpan Net::SCP::Expect 首次使用cpan命令会出现 choice local or sudo的样式,默认为local,建议使用sudo. 最后会出现 ERROR: Can't create '/usr/local/man/man3' Do not have write permissions on '/usr/
1.# service mysqld stop #停止mysql数据库服务Shutting down MySQL.. SUCCESS! 2.# service mysqld start --skip-grant-tables #跳过授权表启动mysql数据库服务(注:参数--skip-grant-tables为跳过授权表)Starting MySQL.... SUCCESS!3.# mysql -p