/assets/avatar.png

Live Long and Prosper 🖖

阿里云mariadb/mysql修改root密码,开启远程连接

mariadb 修改root密码 1 2 3 4 5 6 7 8 9 # mysql -uroot -p /*输入密码进入*/ /*第一个方式:直接编辑数据库字段*/ MariaDB [(none)]> use mysql; MariaDB [mysql]> UPDATE user SET password=password('newpassword') WHERE user='root'; MariaDB [mysql]> flush privileges; MariaDB [mysql]> exit

Another web server is already running.

当需要调整xampp apache 端口的时候,而且当这时候80端口又被占用的时候,去 start , restart apache的时候就会出现如下错误: 1 XAMPP: Another web server is already running. 就算是改了

can't use gulp-sass

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 (node:29753) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. module.js:568 return process.dlopen(module, path._makeLong(filename)); ^ Error: dlopen(/Users/jovi/longtou-web/gzletou.com/node_modules/node-sass/vendor/darwin-x64-48/binding.node, 1): no suitable image found. Did find: /Users/jovi/longtou-web/gzletou.com/node_modules/node-sass/vendor/darwin-x64-48/binding.node: truncated mach-o error: segment __TEXT extends to 1212416 which is past end of file 86576 at Error (native) at Object.

centos安装nginx过程

下载最新的nginx包(编译安装,个人喜欢新版本),下载包 ./configure: error: C compiler cc is not found 由于默认缺少编译器,所以需要安装一些,还有依赖的依赖类似这种,反正

centos安装记录

  1. 使用iso文件写入centos iso文件

  2. 开机启动设置U盘直接安装, 不修改配置文件。 直接在安装时设置里打开网络,九可以跳过第 4 条。

  3. 默认未安装wget ,x-windows,nano

  4. 配置网络

    vi /etc/sysconfig/network-scripts/ifcfg-网卡名称不同而不同

    ONBOOT=yes //将ONBOOT="no"改为ONBOOT="yes"

    service network restart

  5. 安装ifconfig yum -y install net-tools

  6. 安装wget yum -y install wget