分类目录归档:编程

Unit mysql.service could not be found解决

方法一 1、首先你需要找到 mysql.server 文件,这个 和 mysqld 文件是一模一样的,只不过文件名不相同 执行命令 find / -name mysql.server 找到文件后,将它复制到/etc/init.d/ 目录下,并重命名 cp /phpstudy/mysql/support-files/mysql.server /etc/init.d/mysqld 再运行 service mysql status 方法二 如果上面的没能解决你的问题: $ yum install -y mariadb-server $ systemctl start mariadb.service […]

WordPress安装过程记录

1、下载wordpress包,官网: https://cn.wordpress.org/ ,注意下载的语言版本,git官网默认是英文版。 github: https://github.com/WordPress/WordPress 中文版百度云备份:https://pan.baidu.com/s/1aqzvl3hmquwsPy4eiagXzA 提取码:dhnw 中文要在wp-config.php或wp-config-sample.php中添加或修改 define(‘WPLANG’,’zh_CN’); define(‘WP_DEBUG’,false); 2、上传到域名指向的根目录下,注意不要修改 […]

Linux CentOS firewall指令集

1、firewalld的基本操作 启动: systemctl start firewalld查看状态: systemctl status firewalld 停止: systemctl disable firewalld禁用: systemctl stop firewalld 2、使用firewalld 查看版本: firewall-cmd –version查看帮助: firewall-cmd –help显示状态: firewall-cmd –state查看所有打开的端口: firewall-cmd […]

Linux CentOS 8 安装ftp

1. yum -y install vsftp 2. 修改/etc/vsftpd/vsftpd.conf 文件: anonymous_enable=NO local_enable=YES write_enable=YES chroot_local_user=YES pasv_min_port=10000 pasv_max_port=11000 userlist_file=/etc/vsftpd/user_list userlist_deny=NO 3. 开放端口 sudo firewall-cmd –permanent –add-port=20-21/tcp sudo firewall-c […]

阿里云建站笔记

终于建站了!波折重重,赶紧笔记! 1 阿里云购买域名和云服务器ECS,最开始选的共享型small(1G1vCPU),后变更为突发型(2G2vCPU),价格相差10块,后者性能明显好于前者。 2 配置ECS:选择CentOS 8操作系统,CentOS 常用命令见这里。2M固定带宽,选择手工设置密码,服务器选在了国内。 第一次用国内服务器,以前用的都是漂亮国的,国内服务器就涉及到备案,还是挺麻烦的,鉴于已经付了钱,并搭建好了一切环境,不想再折腾,遂决定硬着头皮用下去,也体会一把申请备案的痛感。 3 通过终端连接到后台,首先更新:yum -y update 4 安装服务器:yum -y instal […]

T-SQL函数类型——字符串函数

字符串函数用于处理列中的数据值,通常属于字符型的数据类型。      1、ASCLL(character),将具体字符转换为相应的整数(ASCII)代码,结果为正数。      例:select ASCII(“A”),结果为65      2、CHAR(int),将ASCII代码转换为相应的字符,结果为CHAR(1).      例:select CHAR(65) […]

【转】HOW DOES THE CPU PROCESS?

What is CPU?CPU is a brain of a computer. It called Central Process Unit. CPU fetches and executes instructions. CPU consists of an Arithmetic and Logic Unit (ALU), a control unit, registers and buses. Part of CPUALU: is a digital circuit that calculates an arithmetic operation (like an addition, su […]