Sun Dec 2021:21:26 yzhang@coam:~/RunProject/ejabberd$ sudo ./configure checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /usr/bin/install -c checking for a sed that does not truncate output... /bin/sed checking for erl... no checking for erlc... no checking for erl... no configure: error: Erlang/OTP interpreter(erl) not found but required
/data/home/yzhang/CoamRunning/Erlang/ejabberd/deps/emysql/src/emysql_conn.erl:337: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
# NeoSmart NeoGrub Bootloader Configuration File # # This is the NeoGrub configuration file, and should be located at C:\NST\menu.lst # Please see the EasyBCD Documentation for information on how to create/modify entries: # http://neosmart.net/wiki/display/EBCD/
title Install Ubuntu root (hd0,0) kernel (hd0,0)/vmlinuz.efi boot=casper iso-scan/filename=/ubuntu-15.10-desktop-amd64.iso locale=zh_CN.UTF-8 initrd (hd0,0)/initrd.lz title reboot reboot title halt halt
When you are at login, press Ctrl+Alt+F1. It will take you to command line interface from the GUI. In here, type your username and password. Now, you can try the following command to install Unity Desktop:
1
sudo apt-get install ubuntu-desktop
If it is already installed, try reinstalling:
1
sudo apt-get install --reinstall ubuntu-desktop
Once it is installed or reinstalled. Use the following command to reboot the system:
#2002 - Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) — The server is not responding (or the local server's socket is not correctly configured).
因为使用源码编译安装的 mysql 5.7 的默认配置文件 /etc/mysql/my.cnf 没有 [client] 这一段配置.而默认的 mysql sock 位置为 /var/run/mysqld/mysqld.sock
首先找到所有的 socket 文件:
1 2 3 4 5
yzhang@coam:~$ sudo find / -type s /tmp/mongodb-27017.sock /tmp/mysql/mysql.sock /run/fail2ban/fail2ban.sock ...
所以手动 /etc/mysql/my.cnf 添加这一行:
1 2
[client] socket=/tmp/mysql/mysql.sock <= this path should be also same as is[mysqld]
mysql> SELECT User, Host, Password FROM mysql.user;
添加新用户 - 以下方式适用于 5.7 以前的版本
1
mysql> INSERT INTO mysql.user (User,Host,Password) VALUES('demouser','localhost',PASSWORD('demopassword'));
添加新用户 - 以下方式适用于 5.7 以后的版本
1 2 3
mysql> GRANT USAGE ON *.* TO 'zhangyanxi'@'localhost' IDENTIFIED BY 'yanxi312' WITH GRANT OPTION; mysql> GRANT ALL ON *.* TO 'zhangyanxi'@'localhost'; ======> 给用户授权 mysql> flush privileges;
给用户授权相关
1 2 3
mysql> GRANT ALL PRIVILEGES ON demodb.* to demouser@localhost; GRANT SELECT, INSERT ON *.* TO 'zhangyanxi'@'localhost'; GRANT ALL ON *.* TO 'zhangyanxi'@'%';