vim /etc/my.cnf [client] #password = your_password port = 3307 socket = /tmp/mysql.sock systemctl restart rc-local.service vim frpc.ini [mysql] type = tcp local_ip = 10.168.1.115 local_port = 3306 remote_port = 3307 custom_domains = 39.100.102.12 systemctl restart frpc.service root135@root135:~/Desktop$ mysql -u root -p -h 39.100.102.12 -P 3307 Enter password: Welcome to the MariaDB monitor. Commands end with… Continue reading mysql 远程端口3307
Author: linux
mysql update delete
mysql> update user set password=password(‘123456′) where user=’root’ and host=’root’ or host=’localhost’; Query OK, 2 rows affected (0.00 sec) Rows matched: 2 Changed: 2 Warnings: 0 mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> update mysql.user set host=’10.168.1.115′ where user=’root’ and host=’localhost’; Query OK, 0 rows affected (0.00 sec) Rows matched: 0 Changed:… Continue reading mysql update delete
bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory
解决方式: 把configure文件中的“^M”去掉就可以了。 方法1: 安装:dos2unix sudo add-apt-repository universe apt-get install dos2unix dos2unix configure 把configure文件转化成linux编码格式。 方法2: 在没有dos2unix情况下 cat ./configure.sh | tr -d ‘/r’ > temp.sh mv temp.sh configure.sh cat ./configure.sh | tr -d ‘/r’ > temp.sh mv temp.sh configure.sh
rc.local开机启动不生效的办法
cd /etc/rc.d/ chmod +x rc.local [root@115 rc.d]# systemctl status rc-local.service ○ rc-local.service – /etc/rc.d/rc.local Compatibility Loaded: loaded (/usr/lib/systemd/system/rc-local.service; enabled-runtime; vendor preset: disabl> Active: inactive (dead) Docs: man:systemd-rc-local-generator(8) [root@115 rc.d]# systemctl enable rc-local.service The unit files have no installation config (WantedBy=, RequiredBy=, Also=, Alias= settings in the [Install] section, and DefaultInstance= for template units). This means… Continue reading rc.local开机启动不生效的办法
Extreme-animal-2
Fun Facts About Reptiles (爬行动物) A snake’s eyes look as if they are always open and watching. Its eyelids are transparent (透明 的), so you can’t see that they’re closed. If a lizard is caught by the tail, its tail will break off, but it can grow a new one. A hidden crocodile can hold… Continue reading Extreme-animal-2