Wesley13 Wesley13
4年前
SOCKET选项
1. IP\_TRANSPARENT\1\socket设置该选项后,可以处理发往非本机的数据包。  \2\使用流程:    配置防火墙和路由:iptablestmangleAPREROUTING!d10.0.110.250ptcpjTPROXYonport10000on
Stella981 Stella981
4年前
PHP7中用opcache.file_cache导出脚本opcode实现源代码保护
停止phpfpm(apache同理):sudo/png/php/7.0.0/png\_fpmstop创建opcode缓存目录:mkdirm777/png/php/opcache\_file\_cache在php.ini中配置:zend\_extension/png/php/7.0.0/lib/php/
Easter79 Easter79
4年前
SpringCloudAlibaba(2)
1\.以单机模式启动Nacous,启动命令startup.cmdmstandalone2.使用postman向NacosServer发布配置:dataId为example.properties,内容为useLocalCachetruehttp://127.0.0.1:8848/nacos/v1/cs/configs?dat
Stella981 Stella981
4年前
Spring 使用注解方式进行事务管理
使用步骤:步骤一、在spring配置文件中引入<tx:命名空间<beansxmlns"http://www.springframework.org/schema/beans" xmlns:xsi"http://www.w3.org/2001/XMLSchemainstance" xmlns:tx"http
Wesley13 Wesley13
4年前
mysql设置远程访问
(1)连接数据库mysqlurootp(2)输入密码(3)切换数据库usemysql;(4)修改root用户hostupdateusersethost'%'whereuser'root';(5)修改mysqld配置文件vi/etc/mysql/mysql.co
Wesley13 Wesley13
4年前
Ubuntu apt更换为阿里源
apt源配置在/etc/apt/sources.list,首先备份一下:cd/etc/apt/cpsources.listsources.list.bak然后修改sources.list为:debhttp://mirrors.aliyun.com/ubuntu/xenialmainrest
Easter79 Easter79
4年前
Spring支持多数据源的@Transactional事务注解
1、配置事务注解驱动、每个数据源对应的事务管理器,并定义“限定符”<tx:annotationdriven/    <bean id"transactionManager1" class"org.springframework.jdbc.DataSourceTransactionManager"  ... 
Stella981 Stella981
4年前
MariaDB下载安装
MySQL环境配置(WINDOWS10)下载mysql链接:https://downloads.mariadb.org/(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fdownloads.mariadb.org%2F)
Stella981 Stella981
4年前
C# 读取资源文件.resx 中的xml资源
主要是以字符串的形式来读取xml,然后通过遍历读取节点,通过节点属性名称获取属性值///<summary///初始化OPC参数配置///</summary///<returns</returnspublicstaticOCPParamsDefineInitOPCParamsConfig(){OCP