一.检查配置文件语法 [root@node2 /]# nginx -tc /usr/local/nginx/conf/nginx.conf nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful 二.重载配置 [root@node2 /]# ngi…
(1)MySQL的启动 重启了一次服务器后,使用> mysql -u root -p登陆是出现下面的错误: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 查看状态: > /etc/rc.d/init.d/mysqld status 显示stop,未运行:>/etc/rc.d/init.d/mysqld restart (2)mysql数据库导入.…
Linux下mysql相关操作 1.创建MySQL mysql -u root -p create user 'username'@'%' identified by 'password'; %可以选择是 localhost //供本机使用127.0.0.1 2.查看MySQL创建的用户名 select user , host from mysql.user; 3.删除 drop user '数据库用户名'; 4.查看权限 show grants for '数据库用户名'; 5.刷新 flush…