摘要:web: lamp - ubuntu2310 一、基础说明 1、lamp说明: L = linux, A = apache2, M = mariadb(mysql), P = php 二、安装包安装 1、安装命令: [wit@ubuntu:null]$ sudo apt install mariad
阅读全文
11 2023 档案
摘要:学习方法: 学习的基本过程 一、学习的基本思路 (一)、明确的学习目的: 1、明确知道“自己为什么要学这些内容”。 2、当你被动的、必须学一些科目时,你必须主动弄清楚“为什么要学习这些内容”。 3、是否达成“学习目的”,要“可测量”。 (二)、明确的学习目标: 1、明确知道,需要学习哪些科目。 2、
阅读全文
摘要:os: ubuntu2310 -- 基础配置 一、基本配置脚本(~/.bashrc) 1 [wit@ubuntu:null]$ cat ~/.bashrc 2 # ~/.bashrc: executed by bash(1) for non-login shells. 3 # see /usr/sh
阅读全文
摘要:shell: bash -- string and array 一、源文件 1 [wit@ubuntu:null]$ cat ./string_and_array 2 #!/usr/bin/env bash 3 4 5 6 7 # file_name = string_and_array 8 9 1
阅读全文
摘要:os: ubuntu2204 -- 配置和常用脚本 一、配置(/etc/profile) 1 [wit@on:null]$ cat /etc/profile 2 # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)
阅读全文
摘要:os: fedora38 -- config 一、~/.basrc 1 [wit@fedora ~]$ cat ~/.bashrc 2 # .bashrc 3 4 # Source global definitions 5 if [ -f /etc/bashrc ]; then 6 . /etc/b
阅读全文
摘要:caipiao: 数据从一个数据库转移到另一个数据库(新旧数据库:表的结构不同;PHP) 一、php源代码 1 [wit@fedora dlt]$ cat dltlibs_backup.php 2 #!/usr/bin/env php 3 4 5 <?php 6 7 8 9 10 // insert
阅读全文
摘要:php_mysql: dlt - 数据库操作 一、数据库的建立和数据插入 1、数据库建立 1 DROP DATABASE `tmp`; 2 3 4 CREATE DATABASE IF NOT EXISTS `tmp`; 5 6 7 USE tmp; 8 9 10 CREATE TABLE IF N
阅读全文
摘要:php_mysql: PHP 格式化输出数据 一、php 源程序 1 [wit@fedora mysql]$ cat php_mysql 2 #!/usr/bin/php 3 4 5 <?php 6 7 8 9 10 // filename = php_mysql 11 12 13 14 15 fu
阅读全文
摘要:os: fedora39 -- 配置和脚本 一、全局配置信息(/etc/basrc) 1、PS1配置(/etc/bashrc) 1 PS1="[${PROMPT_BRACKETS:+[}\[\e[${PROMPT_COLOR:-32}m\]\u@\h\[\e[0m\]:\[\e[${PROMPT_D
阅读全文
摘要:python3: dlt - 数据结构2 一、源程序 1 [wit@fedora null]$ cat test.py 2 #!/usr/bin/env python3 3 4 5 6 7 # file_name = test.py 8 # python_verion = 3.11.1 9 10 1
阅读全文
摘要:python3: dlt - 数据结构 一、程序: 1 [wit@fedora null]$ cat test.py 2 #!/usr/bin/env python3 3 4 5 6 7 # test this script 8 def msg(): 9 print("\nhello, python
阅读全文
摘要:os:ubuntu2204 -- 删除“旧内核”脚本 一、ubuntu删除旧内核: 1、查询内核信息: 1 [wit@on:null]$ sudo dpkg --get-selections | grep linux 2、删除旧内核: 1 [wit@on:null]$ sudo apt purge
阅读全文
摘要:os_config: fedora38 ~ bash config 1. bash config (~/.bashrc) 1 [wit@fedora null]$ cat ~/.bashrc 2 # .bashrc 3 4 # Source global definitions 5 if [ -f
阅读全文

浙公网安备 33010602011771号